I still have the same issue.
Yes, I have wrapper div how it can be solved in this case?

Thanks

On Apr 30, 7:05 pm, Wes Duff <[EMAIL PROTECTED]> wrote:
> Off the top of my head --- Try something like this
>
> $('div#mydiv').clcik(function(){$('div#mydiv').show();}); //click to
> show div
> $('div:not(#mydiv)').click(function(){$('div#mydiv').hide()}); click
> anywhere else to hide div ## Problem just thought of If you are using
> a wrapper div then you will have the same problem as before. Well you
> get the idea.
>
> This is just off the top of my head but if it donst work you get the
> idea.
>
> On Apr 30, 11:17 am, Aleksandr <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > I am showing a div on click of a hyperlink. Now, when i click
> > elsewhere in
> > the document other than the div itself, then i want to hide the
> > showing
> > div... Is there any easy way to do this?
>
> > I've already try:
>
> > $('html').click(function() { $('#divLoginBox1').hide(); });
>
> > and
>
> > $('body').click(function() { $('#divLoginBox1').hide(); });
>
> > but this close div when clicked inside of it.
>
> > Thanks,
> > Alex

Reply via email to