Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change submit button label? #24

Closed
abbott opened this issue Jan 20, 2012 · 3 comments
Closed

Change submit button label? #24

abbott opened this issue Jan 20, 2012 · 3 comments

Comments

@abbott
Copy link

abbott commented Jan 20, 2012

the current submit button is "Pay", it would be great if it could be changed.

@em
Copy link

em commented Jan 20, 2012

beforeInject: function(form) { $(form).find('button').text('New Label'); }

@em em closed this as completed Jan 20, 2012
@abbott
Copy link
Author

abbott commented Jan 20, 2012

thanks!

@abfan1127
Copy link

This is for others that search. I generate my json options via PHP. You can't enclose the function (form)... in quotes. So following some advice, I added delimiters to the beginning and end (I used %%), perform the json_encode, then str_replace the "%% and %%". Then it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants