<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Lang" content="ru">
<title>Untitled</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
function myFunc() {
jQuery('#mydiv').html( jQuery('#input_text_10').val() );
}
</script>
</head>
<body>
<input id="input_text_10" value="100500"> <a href="#" onclick="myFunc();">тыц!</a>
<div id="mydiv"></div>
</body>
</html>
__________________
Cogito, ergo sum
Последний раз редактировалось cmd, 21.05.2012 в 20:35.
|