Jump to content
  • 0

Как проверить язык воода?


Ксеня
 Share

Question

4 answers to this question

Recommended Posts

  • 0

<script language="javascript">

function CheckPwd(in_first_field, in_second_field, in_div_result)

{

first_field = document.getElementById(in_first_field);

second_field = document.getElementById(in_second_field);

div_result = document.getElementById(in_div_result);

if (second_field.value == first_field.value)

{

div_result.innerHTML = 'Пароли совпадают!';

}

else

{

div_result.innerHTML = 'Пароли не совпадают!';

}

if(!/^[а-яs]+$/i.test(name_input){

alert("Только кириллица!");

}

}

<script language="JavaScript" src="/_js/base.js">

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy