jQuery Click Toggle


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



Copy this code and paste it in your HTML
  1. $('.editWork').click(function(){
  2. var c = $(this).text();
  3. if(c == 'Düzenle'){
  4. $(this).text('Tamam');
  5. }else{
  6. $('.editWork').text('Düzenle');
  7. }
  8. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.