Проверка полей формы в реальном времени javascript

<input id=»bet» type=»text» OnChange=»check_it();» name=»target_arg6″ value=»» size=»1″/>Баллов             <br/><div id=»message» style=»display: none;»>У вас недостаточно баллов.</div>

 

<script>

var message = document.getElementById(«message»);

var bet = document.getElementById(«bet»);

 

function check_it ()

{

if (bet.value > <?php echo $score ?>) {

showAlert();

}

if (bet.value < <?php echo $score ?>) {

hideAlert();

}

}

function showAlert ()

{

message.style.display = «block»;

}

 

function hideAlert ()

{

message.style.display = «none»;

}

</script>

Проверка полей формы в реальном времени javascript

3 мыслей о “Проверка полей формы в реальном времени javascript

  • 12.03.2024 в 17:25
    Permalink

    Wow, amazing weblog structure! How long have you ever been blogging for?
    you make blogging look easy. The total look of your website is wonderful, as neatly
    as the content! You can see similar here e-commerce

  • 13.03.2024 в 00:16
    Permalink

    Quality content is the main to attract the people
    to go to see the web page, that’s what this website is providing.

    I saw similar here: E-commerce

  • 14.03.2024 в 18:25
    Permalink

    Useful info. Lucky me I discovered your website by chance,
    and I am surprised why this twist of fate didn’t took place earlier!
    I bookmarked it. I saw similar here: Sklep online

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *