Dishebh Bhayana has Published 48 Articles

How to disable the form submit on enter button using jQuery?

Dishebh Bhayana

Dishebh Bhayana

Updated on 02-Aug-2023 19:21:17

700 Views

In this article, we will learn how to disable the form submit behavior with the press of enter button using jQuery, and its element selector feature and “keypress” event listener. Form submission disabling can be useful in cases where it requires some validation on some input fields. For example, a ... Read More

How to disable buttons using AngularJS?

Dishebh Bhayana

Dishebh Bhayana

Updated on 02-Aug-2023 19:17:21

953 Views

In this article, we will learn how to disable button HTML elements using angularJS with the help of the “ng-disabled” angularJS directive. Disabled buttons can be useful in cases of forms that have some validation required on some input fields. For example, a form with the name and email required ... Read More

How to disable button element dynamically using JavaScript?

Dishebh Bhayana

Dishebh Bhayana

Updated on 02-Aug-2023 19:15:37

1K+ Views

In this article, we will learn how to disable button HTML elements dynamically using javascript, with the help of the “disabled” attribute. The “disabled” attribute in HTML button elements accepts a boolean value (true or false), and depending on the value, it disables the button and makes it non-functional, i.e., ... Read More

How to disable browser autofill on input fields using jQuery?

Dishebh Bhayana

Dishebh Bhayana

Updated on 02-Aug-2023 19:12:40

562 Views

In this article, we will learn how to disable the browser autofill feature on input fields with the help of jQuery, and the “autocomplete” attributes provided by the “input” HTML tag. Browser autocomplete is a feature that suggests the past values entered and submitted into the forms. By default, ... Read More

How to disable browser Autocomplete on the web form field/input tag?

Dishebh Bhayana

Dishebh Bhayana

Updated on 02-Aug-2023 19:07:28

141 Views

In this article, we will learn how to disable the browser autocomplete feature on the web form fields or their input elements, and we will use the “autocomplete” attributes provided by “form” and “input” HTML tags. Browser autocomplete is a feature that suggests the past values entered and submitted ... Read More

How to disable arrows from Number input?

Dishebh Bhayana

Dishebh Bhayana

Updated on 02-Aug-2023 19:01:20

9K+ Views

In this article, we will learn how to disable and hide arrows from number-type input with the help of 2 different approaches, one using CSS, and the other using an “inputmode” attribute. Number-type inputs are useful when we only want inputs in terms of numbers from users, like input for ... Read More

How to disable the ALT key using jQuery?

Dishebh Bhayana

Dishebh Bhayana

Updated on 02-Aug-2023 18:58:05

151 Views

In this article, we will learn how to disable the ALT key using jQuery with the help of “keydown” and “keyup” event listeners, and the bind method. In web development, there might be scenarios where you want to disable certain keys on your web page. One such key is the ... Read More

How to disable a jQuery-ui draggable of widget?

Dishebh Bhayana

Dishebh Bhayana

Updated on 02-Aug-2023 13:11:11

236 Views

We can disable a jQuery UI draggable widget with the help of its draggable disabled option. jQuery is a javascript library that helps us manipulate the DOM easily and efficiently using its various helper methods and properties. It allows us to add interactivity to the DOM as well as ... Read More

How to author fast-loading HTML pages?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 17:53:50

129 Views

We can optimize our web application in various ways, and cause our web page to load faster, and in a more efficient way, which not only will reduce the load on the web servers, but also increase the SEO rankings of the website. Let’s discuss the different ways through which ... Read More

How to disable browser print options (headers, footers, margins) from the page with CSS?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 11:37:47

3K+ Views

We can control the print preview page’s header, footer, and margin just with the help of CSS, and even achieve the desired layout and orientation of the paged media. We will be using @page directive to achieve our results. While previewing a print page in the browser, we see some ... Read More

Advertisements