Greetings,
I have a rather complex JavaScript I am writing and have it placed in a script block in the Default Edit Form of a task list. I have everything working except for one last part.
I need to hook in to a drop down list onchange event. I want to fire my on function any time the drop down list is changed. The result is, I'm disabling/enabling a button based on the value of the drop down. In any other circumstance, this would be simple; however, I cannot seem to get it work here. This is my code:
var element = $("select[title='Network Access Action']") if(element != null) { element.setAttribute("onchange","networkAccessActionChange();"); }
Seems quite straight forward. But the "networkAccessActionChange" function is never fired.
What am I doing wrong?
Thank you in advance for the help!
Bob