<input type="hidden" id="name" name="hidden-new-field"/>
<form>
<input type="text" id="name-emails" />
<input id="send-btn" type="submit" class="button" value="SEND NOW" />
</form>
On button click I want to give the value of input type text to the value of hidden type
Best Answer
There are few mistakes in your form
name
attribute on input type textid
of Hidden element should not be name (leading confusion)form
tagi would prefer like this
PHP
jQuery
DEMO