I'd like to click a button in a dialog and change the text on the message area before running the function associated with the button or simply change the text as part of the function.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
Just put a text area into the dialog, it will be editable. If you want to toggle whether or not you can edit it just add a button.
You can use a .onclick event as such...
You can bind a function to the close event - http://jqueryui.com/demos/dialog/#event-close. I'm betting you can change your text in there.