jquery toggle did not work properly
<pre><code>function advanced_search()
{

$("#advanced_link").toggle( 
function(){
$('#advanced_link').text('Hide - Advanced Search');
$('.advanced_search').show();
},
function(){
$('#advanced_link').text('Show - Advanced Search');
$('.advanced_search').hide();

});
}
</code></pre>

<p>this code worked for me..but when i tried to use the css property like</p>

<pre><code>function advanced_search()
{

$("#advanced_link").toggle( 
function(){
$('#advanced_link').text('Hide - Advanced Search');
$('.advanced_search').css('display','inline');
},
function(){
$('#advanced_link').text('Show - Advanced Search');
$('.advanced_search').css('display','none');

});
}
</code></pre>

<p>it did not work...is there any thing wrong in second code...??</p>
