日期:2014-05-16 浏览次数:20348 次
<form name="form1" action="confirm.nhn" method="post">
<br>
Sex:
<input type="radio" value="1" name="man.sex">
Male
<input type="radio" value="2" name="man.sex">
Female
<br>
Hobbies:<input type="checkbox" value="1" id="man.hobbie" name="man.hobbie">
Music
<input type="checkbox" value="2" id="man.hobbie" name="man.hobbie">
Sport
<input type="checkbox" value="3" id="man.hobbie" name="man.hobbie">
Movie
<br>Self Description:<br>
<textarea id="man.description" name="man.description"></textarea><br>
<br>
<input type="button" value="Submit" name="button1" onclick="javascript:deal()">
<br>
</form>
<script type="text/javascript">
function deal(){
document.form1.submit();
}
$(function(){
$('#man.description').text("sssddf");
})
</script>