How do I show a hidden DIV with Jquery when a user clicks a radio box?
Posted
by user342391
on Stack Overflow
See other posts from Stack Overflow
or by user342391
Published on 2010-05-16T14:27:02Z
Indexed on
2010/05/16
14:30 UTC
Read the original article
Hit count: 242
I am having difficulty showing a hidden div when a user selects a radio box.
This is my code:
The Jquery
<script>
$(document).ready(function () {
$(".paypalmethod").click(function() {
$(".paypalinfo").show('slow');
});
</script>
The html
<input name="method" type="radio" value="paypal" class="paypalmethod"/><img src="/images/paymentlogos/PayPal.png" />
<div class="paypalinfo" style="display:none">Paypal the safe and easy way to pay. Paypal accepts all major credit cards.</div>
© Stack Overflow or respective owner