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: script type=text/javascript id=demoscript $(function(){ if (document.location.href.indexOf('showdiv=yes') 0) $(#display).show(); }); /script On Sat, Feb 13, 2010 at 5:37 PM, dikker

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

2010-02-14 Thread Andrei Eftimie
script type=text/javascript id=demoscript $(function(){ if (document.location.href.indexOf('showdiv=yes') 0) $(#display).show(); }); /script On Sat, Feb 13, 2010 at 5:37 PM, dikker dikkk...@hotmail.com wrote: Hi guys, Am a beginner with Jquery and what i want is

[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