I have some text in a DIV container. When the user clicks that text, i would like to have a selection list poppup. When the user chooses a value from the selection list, and clicks a save button, the DIV container should be updated with the text from the selection list.
How should i approach this? Im not sure how to make the selection list pop up. If i make it pop up in a new tab, how can i save it on the previous site?
Thanks
If you are familiar with jQuery you can use a plugin, which is called Jeditable, it is powerful and you can make amazing things with it.
Here is some example code:
There is only one mandatory parameter. URL where browser posts edited content.
Code above does several things: Elements with class
.editbecome editable. Editing starts with single mouse click. Form input element is text. Width and height of input element matches the original element. If users clicks outside form changes are discarded. Same thing happens if users hitsESC. When user hitsENTERbrowser submits text tosave.phpatwww.example.com.When submitting change, following data will be
POST:ed to server:id=elements_id&value=user_edited_content