Prev Demo
jQuery
>
Element[Attribute*='Value'] - Attribute Contains
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <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 red"); }); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output