Finding out elements from the web page.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under jQuery category on | Points: 40 | Views : 1001
To find out elements form the web page whose a particular attribute contains certain characters,we can use Attribute contain selector .

<input id="NameTxtFirst" type="text" />
<input id="NametxtLast" type="text" />
<input id="FirstName" type="text" />
<input id="btnTest" type="button" value="Button" />

<script>
$(function () {
$("input[id*='txt']").css("border", "1px solid green");
});
</script>

Comments or Responses

Login to post response