I have a form where a user can enter a page title into an input field and it will generate a URL. On the submit button click the value is displayed in a different input field(URL). If they are not happy with their URL they can manually edit it inside that field and then save their changes via a button click.
The button’s value also changes depending on the state of the URL field.
My code is working but I have a problem with the last 2 functions happening at once, I have tried adding StopEventPropagation (or similar) and that has not worked for me. Please help if you can.
The JSfiddle is here
Rather than combining both handlers I used jQuerys
liveevent handler for the second click.See example at http://jsfiddle.net/dJPvJ/
Edit:
I was half-way there with my original answer, this amended code should do what you need:
To get this to work you also need to add “save_url_button” to the original markup: