I feel its strange error !
I am developing WordPress widget for My site.In my widget i have the Highslide Popup form.While submitting form i want to call the particular function.the function is included in header,But it says function is not found.
My form
<form method="post" name="contact_vendor_contact_frm"
onsubmit="return contact_vendor_contact_frm(this);">
.....
</form>
contact_vendor_contact_frm functions included in header contact_vendor.js.You can see this in page source
Help me!
2 Answers 2
In your code name attribute of form is equal to function name and it overwrite your function. If you write:
console.log(contact_vendor_contact_frm); // this would be point to form element not to your function
Comments
User Firebug and check if this returns function
typeof contact_vendor_contact_frm;
If not, then check what the returned value is, to solve the problem.