Как вариант...
<!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">
#exemple {
display: none;
}
</style>
<script type="text/javascript">
$(document).ready(function (){
$('input:radio').click(function (){
$('#exemple').css('display',(this.value==1)? 'block': 'none');
});
});
</script>
</head>
<body>
<input type='radio' name='test' value='0' />0
<input type='radio' name='test' value='1' />1
<input type='radio' name='test' value='2' />2
<input type='radio' name='test' value='3' />3
<p id='exemple'>exemple</p>
</body>
</html>
|