M
M
Megalexandros2020-02-14 16:28:45
PHP
Megalexandros, 2020-02-14 16:28:45

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

3 answer(s)
I
Ilya Loginov, 2019-06-09
@remakeme

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;
}

S
Stalker_RED, 2020-02-14
@Stalker_RED

https://developer.mozilla.org/en/docs/Learn/HTML/F...
see client side validation, inline validation.

M
M-ka, 2020-02-14
@M-ka

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 question

Ask a Question

731 491 924 answers to any question