I would like to add jQuery UI button to all my input submits.
$('input:submit').button();
That works great for normal buttons but it doesn’t work for buttons I create dynamically.
Anybody know how to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest thing would to add this line when creating the new buttons.
for example
I believe you could also just call this again but it might be slower.
EDIT:
after looking at what jQuery.tmpl is you might be able to do something like
but don’t hold me to it.
OR take a look at the jquery ui css and just add the classes you need to the submit buttons. Hover may not work though