Monday, 18 September 2017

Get value from hidden field - jQuery

How can I get the value using jQuery?

<input type="hidden" value="" id='h_v' class='h_v'>

Use val() instead of text() var hv = $('#h_v').val(); alert(hv);

No comments:

Post a Comment