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
Post a Comment