Answers for "how change button text in jquery"

2

To set the text of button using Jquery

BY LOVE
  $('#btnid').text('Show');
Posted by: Guest on May-08-2020
0

jquery replace text in button

<input type='button' value='Add' id='btnAddProfile'>
$("#btnAddProfile").attr('value', 'Save'); //versions older than 1.6

<input type='button' value='Add' id='btnAddProfile'>
$("#btnAddProfile").prop('value', 'Save'); //versions newer than 1.6

<!-- Different button types-->

<button id='btnAddProfile' type='button'>Add</button>
$("#btnAddProfile").html('Save');
Posted by: Guest on August-27-2021

Code answers related to "how change button text in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language