Another crappy attempt at SEO lol...blackhat spam ftw!
back on topic:
I think @joshuanhibbert gave a solid solution, my only suggestion would be to make the animation faster by setting the duration and hiding the elements via jQuery instead of having the extra CSS...
I have to target those radio buttons together...oh wait I can wrap them in a div. Never mind.
Okay now it's showing this:
in Chrome Inspect Element. Don't know what it is. I don't have those funky European signs in my code:
//If radio is checked, show this or else $("div#shoutboxradiobuttons input").change(function() { if ($(this).val() == "one") { $("#shoutboxboth").fadeOut('fast', function(){ $("#shoutboxone").slideDown('fast'); }); } else { $("#shoutboxone").fadeOut('fast', function(){ $("#shoutboxboth").slideDown('fast'); }); } });
It appears to me that you do not have enough ) to close the things properly. If you don't want to remove the change, you could just properly close the parentheses.
I modified some code from the Web Change Request Form for show/don't show depending on radio buttons. I trimmed it down to the jQuery doesn't work.
http://jsfiddle.net/knittingfrenzy18/AYzpk/
Please check it out for me, thanks!
Red
back on topic:
I think @joshuanhibbert gave a solid solution, my only suggestion would be to make the animation faster by setting the duration and hiding the elements via jQuery instead of having the extra CSS...
Example:
http://jsfiddle.net/FTg9y/
Now the thing is I have mulitple inputs on the page--my problem is how to target the radio buttons as a group.
Oh and now the rest of my jQuery's gone splat when I added this in, i.e. none of it works.
I have to target those radio buttons together...oh wait I can wrap them in a div. Never mind.
Okay now it's showing this:
in Chrome Inspect Element. Don't know what it is. I don't have those funky European signs in my code:
As far as your targeting issue... simply add a class to the inputs and target that instead of just an input tag....e.g.
Now the jQuery doesn't break, but it still generates the same error as above and therefore is not FUNCTIONING.
Why?
It works fine on the fiddle, but doesn't on my local server.