Answer the question
In order to leave comments, you need to log in
When sending an empty input'a, text should appear in the input'e, how to implement it?
When sending an empty input'a, text should appear in the input'e.
For example 'Enter Name'
Answer the question
In order to leave comments, you need to log in
Displays the product depending on the month. The error is that you don't have a condition for February:
$month = "Февраль";
...
switch($month){
case "Январь": if(strpos($element["NAME"], "кофта") > 0) $res = $element["ID"]; break;
case "Июнь": if(strpos($element["NAME"], "футболка") > 0) $res = $element["ID"]; break;
case "Сентябрь": if(strpos($element["NAME"], "шор") > 0) $res = $element["ID"]; break;
}
https://developer.mozilla.org/en/docs/Learn/HTML/F...
see client side validation, inline validation.
If you do not use crooked browser validation, write your own, which would be launched depending on the required set of actions, both on keyups, on blues, etc., etc., well, in the process of submitting by itself... events at the fields, and not hang 100500 events on the blur or keyup of each field, and then only add or remove them from the list if necessary, or hang each individual handler ... in general, the flight of fancy is large and depends on the volume and needs exactly how validate fields.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question