getElementsByAttribute | JavaScriptSource

getElementsByAttribute

JavaScriptSource Staff Feb 1, 2006
Ever run into a situation where you want to get an array of all elements with a specific attribute? Or even want elements with a certain value for that chosen attribute as well? Just add this code snippet to your script and your problem will be solved.

The JavaScript Source: Snippets : getElementsByAttribute

Simply click inside the window below, use your cursor to highlight the script, and copy [Control]+C the script into a new file in your text editor (such as Note Pad) and save [Control+S]. The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response

(
0 comments)