Get Attribute Of Clicked Link With Js Function
there is html structure:
I need to get attribute of a,that had been clicked,e.g. alt. How to know with setStrin
Solution 1:
onclick="setString(this)
///Javascript Code:
functionsetString(element){
var value = element.children[0].alt;
}
Post a Comment for "Get Attribute Of Clicked Link With Js Function"