so now I have a form with this…
<INPUT type="text" name="budget[unbudgeted_balance]" value="">
<INPUT TYPE="button" NAME="button2" Value="Get Funds Value" onClick="writeText(this.form)">
And some coffeescript as such…
window.writeText = (form) ->
form.budget[unbudgeted_balance].value = "frack"
translated to JS as such…
window.writeText = function(form) {
return form.budget[unbudgeted_balance].value = "frack";
};
If I do name=”budget”…It works. BUT if I do name=”budget[unbudgeted_balance]”, it won’t work, why is this. How do I fix?
The name of the field is
budget[unbudgeted_balance]. Try: