Disable HTML form element with reset button -


i wonder whether possible disable form element or set of form elements 'reset' button. in detail: have form checkboxes , associated dropdown lists ('select' elements size=1). when check 1 of checkboxes, correspondent dropdown enabled. when uncheck box, correspondent dropdown disabled.

but when click reset button, checkboxes unchecked automatically while correspondent dropdowns still remain enabled. there option disable them beside of writing own function iterate on dropdowns disabling each of them , assigning function 'onreset' event of form?

kind regards
ewgenij

you mean this?:

$('#reset').click(function(){        $("#target input").prop("disabled", true); }); 

well, disable form without unchecking function works. see here

but maybe understood wrong. in case code of author useful.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -