Disable fields using JQUERY - Enabling fields when submit button pressed.
Hello,
I am using Apex 3.2 on Oracle 11g.
I am new to JQUERY.
The following jquery code disables/enables fields based on radio button selections.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
$(":radio[value='D'][checked='true']").each(function(index)
{$("select[name='" + $(this).attr("name") + "']").attr("disabled", true).val("N");
});
$(":radio[value='D']").click(function()
{$("select[name='" + $(this).attr("name") + "']").attr("disabled", true).val("N");
});
$(":radio[value!='D']").click(function()
{$("select[name='" + $(this).attr("name") + "']").removeAttr("disabled");
});
});
</script>
Problem: I would like to ensure that any "disabled" fields are enabled when a submit button is pressed.
What code can be added to jquery that designates that the submit button has been clicked and the fields enabled?
I have been struggling with this for awhile so any help would be appreciated.
Thank you.