javascript - How taking the value of a href attr in a div -


this question has answer here:

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

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -