Hello,
I am using a great script found on this very site: Ajax Edit in Place Using Prototype written by Ben Robison
http://www.phpbuilder.com/columns/ben_robinson20061207.php3
The script writes a text form field that gets dynamically updated using ajax. I would love to use this script. However, I need to allow users to select from a value list, not enter into a text field.
The function showResponse in functions.js writes the text field:
var pidField = '<input type = "hidden" id="pID" value="'+pID+'"></input>';
var textField = '<input type = "text" id="name" size="30" value="'+value+'"></input">';
but I don't know how to modify it to work with a select/option element instead.
If anyone can help with this I'd be most grateful.
Thanks!