jQuery Selector - change only input type of button to different value?

If I wanted to match only input type of button and change it's value only, how would I do that?

<input type="text" value="Finish">
<input type="button" value="Finish">

Open in new window

I only want to change the "button" type to "Finish and Complete".

I have this so far, but it's not working.

$("input[value='Finish']").val("Finish and Complete");

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris StanyonWebDevCommented:
You would need to select by Type:

$("input[type='button']").val("Finish and Complete");

but that would select all button types. If you want to only select a specific on,e give it an ID and use that instead

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
greddinAuthor Commented:
Thank you Chris.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.