Different button's name at the opening of jquery dialog

Posted by Luca Belluco on Stack Overflow See other posts from Stack Overflow or by Luca Belluco
Published on 2010-05-24T13:47:36Z Indexed on 2010/05/24 13:51 UTC
Read the original article Hit count: 185

Filed under:
|
|
|

Hello, I have a dialog form and when I open it I have the button "add a task", I would like to keep this "name", when I open the form from an empty case, but I want to have a button named "edit this task" when I open an already existing task.

I also want to send the form with this button when I push enter key, no matter where I am on the form.

Thank you.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about form