When a user selects a radio box, then I'm showing a hidden div.
This is my code:
Jquery
& lt; Script & gt; $ (Document) .ready (function () {$ ("paypalmethod"). (Function () {$ (".pippalinfo"). Show ('slow');});
html
& lt; input name = "method" type = "radio" value = "paypal" class = "paypalmethod" &> Lt; img PayPal is the safest and easiest way to pay. PayPal accepts all major credit cards. & Lt;
You are losing one off };
In your code, you have to close document.ready
and .click ()
, like this From:
$ (document) .ready (function () {// or just $ (function ()) works here ($. "Paypalm Method"). ) {$ (".pippalinfo: hidden"). Show ('additionally, when the element is already visible, to generate no fade, add an addition like I have above it.It only searches / Fades. Elements if it is currently hidden, and it has already been shown, it will not be faded again.
Comments
Post a Comment