Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4677 มุมมอง

i have a registration form, form should get submit after performing validation

here validation is performing but form is not submitting

my form is like this.

======================form====================

<form action="/website/form/" method="post" class="s_website_form form-horizontal container-fluid mt32" enctype="multipart/form-data" data-model_name="empdetails.regis" data-success_page="/christjobs/thankyou" >

<input type="text" name="reg_name" class="form-control" placeholder="NAME OF STUDENT AS PER 10 RECORD " />

<input type="button" class="btn" value="Submit" id="btnSubmit; insert" onclick="ddlValidate();" />

</form>

=================java script=====================

function ddlValidate() {

var reg_name = document.forms['frm'].reg_name.value

if(reg_name === "") {

alert("reg_name empty");

document.getElementById(question).style.background ='#F99984';

return false;

}

if(reg_name != ""){

document.forms["frm"].submit();

}

return true;

}

อวตาร
ละทิ้ง

just goto the logs and see whats happening, actually its submitted on the defined URL but nothing is processed or error

ผู้เขียน

Exactly

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 21
7248
3
ก.ค. 20
21831
odoo/python invalidate_all() แก้ไขแล้ว
2
ม.ค. 19
7812
1
ธ.ค. 18
3502
1
ก.ค. 18
7929