Acessing "a" element of an array using jquery -
i have code:
var al_normal = $("#tables a"); now want access element of index 0 using $("#tables a")[0], when use return href value. how can access entire element attributes in index?
thanks!
var al_normal = $("#tables a").get(0); or
var al_normal = $("#tables a")[0]; both return dom object. if need access jquery object, use:
var al_normal = $("#tables a").eq(0); further info: http://api.jquery.com/eq/
Comments
Post a Comment