Сообщение от kostar
|
я пытался
|
Немного не так...
<!DOCTYPE html>
<html>
<head>
<script src='http://code.jquery.com/jquery-latest.js'></script>
<!--
<link rel='stylesheet type=text/css href=tmp.css' />
-->
<style type='text/css'>
</style>
<script type='text/javascript'>
$(function (){
$('.price').click(function (){
var premen = this.innerHTML;
$('#two').text(premen);
});
});
</script>
</head>
<body>
<div id='one'>
<span class='price'>text1</span>
<span class='price'>text2</span>
<span class='price'>text3</span>
<span class='price'>text4</span>
<span class='price'>text5</span>
</div>
<div id='two'></div>
</body>
</html>
</html>