How can I hook up an event to a function name I have defined as a string?
I\'m using Prototype.js, although this is not Prototype-speficic.
$(inputId
Looks like formData.fields[x].onclick holds the name of a global function? If so try:
formData.fields[x].onclick
$(inputId).observe('click', window[formData.fields[x].onclick]);