Finding all Textboxes with a Name attribute that contains the word 'NEERAJ' and if finds then assign some value.

vishalneeraj-24503
Posted by vishalneeraj-24503 under jQuery category on | Points: 40 | Views : 277
<script src="//code.jquery.com/jquery-1.10.2.js"></script>

<input name = "neeraj1">
<input name = "neeraj2">
<input name = "vishal">
<input name = "neeraj">

<script>
$("input[name~='neeraj']").val("Neeraj is present.");
</script>

Comments or Responses

Login to post response