jquery checked checkbox on refresh and unique value query
<p>I'm trying to run a piece of code only when a <code>checkbox</code> is checked on refresh with the correct value? </p>

<pre><code>if ($("input[name='business_group']").attr("checked")==true &amp;&amp; .val("accommodation")) { 
    $(".acc_title").show();
    $(".fd_title").hide();
    $(".dest_title").hide();
    $(".ttt_title").hide();
    $(".c_name_container").show();
    $(".stay").show();
    $(".visit").hide();

    alert("accommodation checked"); 
} 
else if ($("input[name='business_group']").attr("checked")==true &amp;&amp; .val("food_drink")) {   
    $(".fd_title").show();
    $(".acc_title").hide();
    $(".dest_title").hide();
    $(".ttt_title").hide();
    $(".c_name_container").show();
    $(".stay").hide();
    $(".visit").show();

    alert("food_drink checked");
}
</code></pre>

<p>Any idea why the above code doesn't work? </p>
