Re: [jQuery] Show/hide div based on URL parameter

2010-02-17 Thread dikker
Thank you Andrei! Nice and simple, very well! Andrei Eftimie wrote: > > >$(function(){ >if (document.location.href.indexOf('showdiv=yes') > 0) > $("#display").show(); >}); > > > On Sat, Feb 13, 2010 at 5:37 PM, dikker wrote: >> >> Hi guys, >> >> Am a beginner

Re: [jQuery] Show/hide div based on URL parameter

2010-02-14 Thread Andrei Eftimie
$(function(){ if (document.location.href.indexOf('showdiv=yes') > 0) $("#display").show(); }); On Sat, Feb 13, 2010 at 5:37 PM, dikker wrote: > > Hi guys, > > Am a beginner with Jquery and what i want is as follows. > I have a div that should be hidden on default, b

[jQuery] Show/hide div based on URL parameter

2010-02-13 Thread dikker
Hi guys, Am a beginner with Jquery and what i want is as follows. I have a div that should be hidden on default, but when a certain URL parameter is present, then the div is visible. I am basing the following on this demo : http://sandbox.ajaxcssblog.com/jquery/jquery.url/url-demo.htm I have th