2012-09-28

Add hidden data in jQuery form

First add input in your html code:
<input type="hidden" name="hiddeninputname" value="" />
Give data in your JavaScript by calling:
$('input[name=hiddeninputname]').val(theValue);

No comments: