newblogger — 2011-03-31T16:43:00-04:00 — #1
Hello, I have a few input button classes all with the same class. When a user clicks on the input button, then I disable the input button so the user does not click on it again. I want to make it so when the user goes back, all of the buttons of the same class are active again(including the one that the user just clicked on). So, on document ready, I have the following:
It does not seem to work, though.
How do I remove the disabled attribute from all elements with the same class?
chris_upjohn — 2011-03-31T18:26:13-04:00 — #2
paul_wilkins — 2011-03-31T19:26:06-04:00 — #3
I don't think it's possible to remove the disabled attribute, but you should be able to set it to false which should enable the field.
newblogger — 2011-04-01T23:02:23-04:00 — #4
The working demo can be found at TextbookPop
I have two problems:
When doing a search in Chrome, the search pauses at the animation for an indefinite period of time.
In a browser that works, after a keyword is entered in the main search bar, and the user clicks "Compare Prices" for one of the keywords, then presses the back button, then the button is disabled.
If you view the page's source, all of the JQuery code is located in the footer. I am not exactly sure if I am correctly coding the AJAX get request. The AJAX get request can be found under the comment: "// Process search submit click" at the bottom of the page source.
[QUOTE=paul_wilkins;4847714]I don't think it's possible to remove the disabled attribute, but you should be able to set it to false which should enable the field.
That does not seem to work for me. When I make those changes, then I am unable to click the button.