To select an element with its name attribute in jQuery you can use the snippet below.
Samples
Javascript Sample
1 |
$('div[name="de.Fesslersoft.Testname"]').css({"border-color": "#000000", "border-width":"15px", "border-style":"solid"}); |
if you remove the div in div[name=”de.Fesslersoft.Testname”] you will get all elements with the specific name.
You can also have a look at this JSFiddle.
If you have any questions or suggestions feel free to rate this snippet, post a comment or Contact Us via Email.
Related links: