3

I have one more button on the page called Edit when I click on Edit button I need to Change the Add Button value to SAVE...using jquery..

thanks

2 Answers 2

8
$('#edit_btn_id').click(function(){
    $('#badd').val('SAVE');
}
Sign up to request clarification or add additional context in comments.

Comments

8

You can use .val() to set the value of any input (including a button), like this:

​$("#badd").val("Save");​​​​​​

Give it a try here, or just plain JavaScript:

document.getElementById("badd").value = "Save";

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.