2
Reply

Get anchor tags value using jQuery

Har Kaur

Har Kaur

May 22 2017 7:17 AM
242
My friend had an interview few days ago and they asked to him about Jquery.
So, the question is like: Suppose i have 10 anchor tag in my html and out of 10 anchor tags 5 have the class property. So, how can you get the anchor tags value that have not any class property?

Note: Any type of chnage in html is not acceptable. You should get tha anchor tag value without change anything in html.
 
Can anyone tell how this is possible. Please !! 

Answers (2)