Friday, 17 February 2017

jQuery selector for selecting an input field with a class

<input type="text" class="form-control" value="Hemant" name="name">
$('input.form-control[type='text']').val();

No comments:

Post a Comment