- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
var fio="";
var phone="";
var mail="";
var check="";
jQuery(document).on("click", 'form input[type = "submit"]', function() {
var m =$(this).closest('form');
if(m.find('input[name="LAST_NAME"]').length > 0){fio = m.find('input[name="LAST_NAME"]').val()}
if(m.find('input[name="PHONE"]').length > 0){phone = m.find('input[name="PHONE"]').val()}
if(m.find('input[name="EMAIL"]').length > 0){mail = m.find('input[name="EMAIL"]').val()}
if(m.find('label.checkbox.checked').html() != undefined){check = m.find('label.checkbox.checked').html()}
if (phone!='' && fio!='' && mail!='' && check!=''){
try {
// some code
} catch (e) {}
}
});
Dummy00001 09.06.2016 18:05 # +3
3_dar 09.06.2016 21:10 # 0
inkanus-gray 09.06.2016 22:30 # +2
guesto 09.06.2016 22:32 # +2
guesto 09.06.2016 22:33 # 0