Linked Questions
41 questions linked to/from jQuery disable/enable submit button
1 vote
4 answers
17k views
html jquery disable button on value [duplicate]
<html> <head> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> </head> <body> <script> function checkValue() { ...
0 votes
2 answers
282 views
How do I disable my search box if the user hasn't entered any characters? [duplicate]
Basically my WordPress theme's search results page doesn't return a "normal" looking page when no characters are submitted. When you use the search tool properly though and actually type something in, ...
1 vote
0 answers
217 views
How to disable a button when the input field is empty? [duplicate]
How to disable a button when the input field is empty? im trying really hard but i'm bad in javascript... :(, so could someone please help me out? because i'm making a schoolproject for a customer ...
0 votes
0 answers
183 views
Enable submit button based on @Html.Textboxfor and @Html.DropDownList filled [duplicate]
Currectly I am creating a page which has many @Html.TextBoxFor and @Html.DropDownList. Based on the value entered in it the submit button should be enabled. I tried required but it doesn't work for me....
2513 votes
18 answers
743k views
.prop() vs .attr()
So jQuery 1.6 has the new function prop(). $(selector).click(function(){ //instead of: this.getAttribute('style'); //do i use: $(this).prop('style'); //or: $(this).attr('style'...
179 votes
9 answers
359k views
jQuery $("#radioButton").change(...) not firing during de-selection
About a month ago Mitt’s question went unanswered. Sadly, I’m running into the same situation now. http://api.jquery.com/change/#comment-133939395 Here’s the situation: I’m using jQuery to capture ...
34 votes
6 answers
57k views
how to disable submit button with jquery
I have a simple form to check the value of post code entered by the user against a variable, I'm trying to disable the submit button and do the check and give alert message, I can't figure out what I'...
14 votes
5 answers
53k views
Disable and Enable submit button in jquery
I am using jquery to disable the submit button and load loading image, In submit button I am using the folowing : <div id="registerbtn" name="registerbtn"> <input type="submit" class="btn ...
8 votes
3 answers
18k views
jQuery: removeAttr("disabled") not working on Firefox
I have some code that looks like the following coming back from an XHR response: jQuery(':text:not(:hidden)').removeAttr("disabled"); This is a result of input fields being disabled after form submit....
3 votes
4 answers
11k views
Button disable unless both input fields have value
I have a form with two input fields and a submit button on my page, I would like to have the feature that the 'submit' button is disabled until there are values on both two input fields. That's the ...
2 votes
3 answers
21k views
Enable submit button when filling in some field with text
I have the following form and javascript: <script type="text/javascript"> function toggleButton(ref,bttnID){ document.getElementById(bttnID).disabled= ((ref.value !== ref.defaultValue) ? ...
3 votes
7 answers
15k views
Different ways of disabling controls within a css class
Can someone tell me all possible ways to disable all buttons in a class, I already tried this which isn't working, $("input.myClass").attr('disabled', true); This is how I am using it, <...
5 votes
3 answers
4k views
Disable form button unless all text input fields are filled in
I have a form that has multiple text inputs, I don't want to add id to each one as they are generated from server side code - number of fields may differ etc. I just want to be able to disable the ...
4 votes
3 answers
3k views
How to prevent spamming of an onclick listener?
This is a new issue for me and I've been unable to find any information about this. I have a simple onclick listener that performs a smooth scroll to a target on the page. Here is the code below: $("...
1 vote
7 answers
7k views
Disable remaining buttons when one is clicked
I have buttons that display a form when clicked. I'm currently trying to figure out how to disable the other buttons once one button is already clicked, to prevent multiple forms from showing. I'm not ...