js function not found error
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
Working place Here.My page
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.
精彩评论