The ban button is pressed in an empty inutah?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
23 views
echo' Information for delivery:Example: Ivanov Ivan IvanovichExample: ivanov_ivan@gmail.comExample: +38 095 512 0808Example: Kyiv Branch # 1 '; echo' Inquire about the order.

For example, a convenient time to call
our Manager
';


Wish that button was active when all fields are filled. Tried to take code from the Internet on this subject but worked crooked or did not work. Asking for your help great guru !
by | 23 views

2 Answers

0 like 0 dislike
Good evening.
Shouldn't interfere with html and php. Separate code
<?php\r// тут php\r?>\r\r" /> Example: Kyiv Branch # 1 \r<?php\r// тут php\r?>

Well, now on topic.
Create js function to process the form
function checkParams() { var fio = $('#fio').val(); var email = $('#email').val(); var phone = $('#phone').val(); if(fio.length != 0 && email.length != 0 && phone.length != 0) { $('#submit').removeAttr('disabled'); } else { $('#submit').attr('disabled', 'disabled'); } }

And add for each input
\r<!-- остальные поля формы -->\r
by
0 like 0 dislike
Use the required attribute:
\rhtmlbook.ru/html/textarea/required
by

Related questions

0 like 0 dislike
2 answers
asked May 11, 2019 by bastiang19
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,187 answers
0 comments
40,796 users