[jQuery] show/hide div crashes safari...

[jQuery] show/hide div crashes safari...


Yesterday I inquired about how to hide and show divs based on a radio button
selection. I eventually got a script working, but it seems to be crashing
Safari (v2) when I click on one of the radio buttons. I'm sure I'm not
writing this as efficiently as it could/should be written, but everything
else I've tried doesn't work. Any thoughts?
thanks!
the script:
// toggle between files & reports
$().ready( function() {
    $("#filesPane").hide();
    $("input[@name='findWhat']").click(function(){
        $("input[@name='findWhat'][@checked]").val() == 0 ?
$("#filesPane").hide('fast') :
        $("#filesPane").show('slow');
        $("input[@name='findWhat'][@checked]").val() == 1 ?
$("#reportsPane").hide('fast') :
        $("#reportsPane").show('slow');
    });
});
the relevant markup:
<div id="leftPane">
    <div class="radioContainer">
<label><input value="0" title="Find Reports" name="findWhat"
id="findWhat" class="radio" type="radio" checked="checked" >Find
Reports</label>
        <label><input value="1" title="Find Files" name="findWhat" id="findWhat"
class="radioSec" type="radio">Find Files</label>
</div>
    
<div id="reportsPane">
        This is the reports pane
</div>
<div id="filesPane">
        This is the files pane
</div>
</div>
--
View this message in context: http://www.nabble.com/show-hide-div-crashes-safari...-tf3158233.html#a8759314
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/