I'm not sure if this is the best way, but I did get it working -- if anyone
can point out a better approach, I'd love to hear it. Thanks

<script type="text/javascript">
        $(document).ready(
                function(){ 
                $("#reportsPane, #filesPane").hide();
                $("[EMAIL PROTECTED]'type']").click(function(){
                $("[EMAIL PROTECTED]'type'[EMAIL PROTECTED]").val() == 0 ?
$("#filesPane").hide('fast') : 
                $("#filesPane").show('fast');
                $("[EMAIL PROTECTED]'type'[EMAIL PROTECTED]").val() == 1 ?
$("#reportsPane").hide('fast') : 
                $("#reportsPane").show('fast');
                });
        });
</script>
-- 
View this message in context: 
http://www.nabble.com/show-hide-div-based-on-radio-buttons-select-options-tf3151990.html#a8741042
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to