How can I change the value of a form input using only jQuery/Javascript? This is what my form looks like:
<form name="submit" id="submit">
<input type="hidden" name="changevalue" id="changevalue" value="0">
I want to execute jQuery that changes "changevalue" to 1 at a certain event.
Drake83
This will change the value of the input changevalue to 1. I found the answer. Fairly easy. :) [code]$("#changevalue").val('1');[/code] This will change the value of the input changevalue to 1.
Are you sure you want to delete this post?