javascript - How taking the value of a href attr in a div -
this question has answer here:
- jquery: how value of html attribute? 6 answers
i have link, how can value of alt attr in href ? (1)
<div class="user_line"> <img class="delete_user" src="images/close_button_mini.gif"> <a class="chat_user" alt="1|test" href="#">test</a> </div> // $this $('.delete_user').live('click',function(){ }
thanks
you can take alt
var alt=$('.chat_user').attr('alt');
Comments
Post a Comment