Показать сообщение отдельно
  #3 (permalink)  
Старый 18.06.2016, 12:16
Аватар для рони
Профессор
Отправить личное сообщение для рони Посмотреть профиль Найти все сообщения от рони
 
Регистрация: 27.05.2010
Сообщений: 33,103

Skyder,
<!DOCTYPE html>

<html>
<head>
  <title>Untitled</title>
  <meta charset="utf-8">

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>

  <script>
 $(function() {
    function show_user_info(lastn, firstn, patr, male, stat, DOB, PH1, PH2, formul) {
        $(".male").eq(+!male).prop("checked", true);
        $('input:radio[name="status"][value="' + stat + '"]').prop("checked", true)
    }
    show_user_info(0, 0, 0, 1, 3, 0, 0, 0, 0); //тест установки  checked
    window.setTimeout(function() { //тест сброса формы
        $("#Freset_info_block").trigger("reset")
    }, 3E3)
});
  </script>
</head>

<body>
<form id="Freset_info_block" action="http://">


 <table width="400"  >
 	<thead>

 	</thead>
 	<tbody>
 		<tr><td class='data_of_client_left_colum'>Пол</td>
   <td colspan='3'>
  <input name='male' class='male' type="radio" value="0">Муж
  <input name='male'  class='male'  type="radio" value="1">Жен
   </td></tr>
<tr><td class='data_of_client_left_colum'>Статус</td>
       <td colspan='3'>
<input name='status' class='status' type="radio" value="1">1
<input name='status' class='status' type="radio" value="2">2
<input name='status' class='status' type="radio" value="3">3
<input name='status' class='status' type="radio" value="4">4
        </td>
</tr>

 	</tbody>
 </table>
</form>
</body>
</html>
Ответить с цитированием