Posted By

envane21 on 11/20/15


Tagged

jquery button change span


Versions (?)

change value of button with jquery


 / Published in: jQuery
 

change value of button with jquery

  1. HTML
  2.  
  3. <button class="myBtn myBtnCTA signIn" onclick="javascript:;">
  4. <span>Close</span>
  5. </button>
  6.  
  7. jQuery
  8.  
  9. alert($('button.myBtn.myBtnCTA.signIn span').text());

Report this snippet  

You need to login to post a comment.