Finding out elements from the web page.

Posted by Vishalneeraj-24503 under jQuery category on | Points: 40 | Views : 110
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" />

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

Comments or Responses

Login to post response