<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Example usage</title>
</head>
<body>
<div id="content">
<form id="form1" name="form1" method="POST">
<input type="hidden" value="" name="id" id="id">
<table width="auto" cellspacing="1" cellpadding="1" border="0" id="form-table">
<tbody>
<tr>
<td><label for="nom_user">Name:</label></td>
<td><input type="text" value="" maxlength="250" size="50" name="nom_user" id="nom_user"> </td>
</tr>
<tr>
<td><label for="num_phone">Phone:</label></td>
<td><input type="text" value="" maxlength="13" size="14" name="num_phone" id="num_phone"> </td>
</tr>
<tr>
<td><label for="des_pass">Pass:</label></td>
<td><input type="password" value="" maxlength="250" size="20" name="des_pass" id="des_pass"> </td>
</tr>
<tr>
<td><label for="des_status">Status:</label></td>
<td>
<select name="des_status" id="des_status">
<option value="" selected="selected">Selecione</option>
<option value="A" >Ativo</option>
<option value="D">Desativado</option>
</select>
</td>
</tr>
<tr>
<td><label for="des_radio">radio option1:</label></td>
<td><input type="radio" value="1" name="des_radio" id="des_radio"> </td>
</tr>
<tr>
<td><label for="des_radio">radio option2:</label></td>
<td><input type="radio" value="2" name="des_radio" id="des_radio"> </td>
</tr>
<tr>
<td><label for="num_check">Options Checks:</label></td>
<td>1 <input type="checkbox" value="1" name="num_check[]" id="num_check1">
2 <input type="checkbox" value="2" name="num_check[]" id="num_check2">
3 <input type="checkbox" value="3" name="num_check[]" id="num_check3">
</td>
</tr>
</tbody>
</table>
</form>
</div>
<script type="text/javascript" src="jquery.1.6.2.min.js"></script>
<script type="text/javascript" src="populate.js"></script>
<script type="text/javascript">
$.populate.populator("form1",{"id":"50","nom_user":"Jhon","num_phone":"3322-6655","des_pass":"1234","des_status":"D","des_radio":"2","num_check":"1:3"});
</script>
</body>
</html>
|