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!
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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.