How do I make a “div” button submit the form its sitting in?

onClick="javascript:this.form.submit();">

this in div onclick don’t have attribute form, you may try this.parentNode.submit() or document.forms[0].submit() will do

Also, onClick, should be onclick, some browsers don’t work with onClick

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)