我很想知道,在你选择一个无线电台时,为什么在独立党上这样做?
<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("input[name= crkbrd ]").change(function(){
if ($("input[name= crkbrd ]:checked").val() == Upload )
{ alert("Upload Your Own Ad"); }
else if ($("input[name= crkbrd ]:checked").val() == Edit )
{ alert("Edit Your Ad Here"); }
else
{ alert("You haven t chosen anything"); }
});
});
</script>
</head>
<body>
<input type="radio" id="rb1" name="crkbrd" value="Upload" /> Upload Your Own Ad<br />
<input type="radio" id="rb2" name="crkbrd" value="Edit" /> Edit Your Ad Here
</body>
</html>