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

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -