amazing ...
On Oct 22, 9:45 pm, [EMAIL PROTECTED] wrote:
Well, it could be shorter :)
$(function(){
$('#aboutContent div').not(location.hash).hide();
});
Danny
On Oct 22, 9:40 am, stef [EMAIL PROTECTED] wrote:
i previously asked about a way to hide and show divs based on the
That seems like a lot of work. Why not
$(function(){ /* shorthand for $(document).ready(function(){ */
$('#aboutContent div').hide(); /* hide all div's */
$(location.hash).show(); /* the hash (with the # sign) is the same
as the CSS selector for an ID (that's why it was chosen) */
}
To
Well, it could be shorter :)
$(function(){
$('#aboutContent div').not(location.hash).hide();
});
Danny
On Oct 22, 9:40 am, stef [EMAIL PROTECTED] wrote:
i previously asked about a way to hide and show divs based on the
location hash value. so if the url is domain.com/page.php#contact then
3 matches
Mail list logo