<asp:HiddenField ID="hfOne" runat="server" />
<asp:HiddenField ID="hfTwo" runat="server" />
<asp:HiddenField ID="hfThree" runat="server" />
I also have a button as follows:
<asp:Button ID="Process" runat="server" Text="Process" />
I wish to:
Capture the Button Click
Change the hfOne.val based on a function that takes hfTwo.val and hfThree.val.
I have the following, which is incorrect:
<script type="text/javascript">
$(document).ready(function () {
$('#Process').click(function (event) {
$('#hfOne').val(function (event){return myProcessFunction($('#hfTwo').val,$('#hfThree').val)});
});
});
</script>
I'd be grateful for some help getting the JQuery right.
Thank you