change value of button with jquery


/ Published in: jQuery
Save to your folder(s)

change value of button with jquery


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.