Hello.
I think you could do something like
$(".containerdiv:not(.divThatHoldsTheTextboxes)").click(function(){
$(".contaierDiv").css("display", "none");}); this means that if the users
clicks anywhere outside the div that holds the boxes the container div will
be changed. I am not very pro in JQuery / js but i think that could do the
trick. Rafine the things as needed
-------------------
Alexandru Dinulescu
Web Developer
(X)HTML/CSS Specialist
Expert Guarantee Certified Developer
XHTML: http://www.expertrating.com/transcript.asp?transcriptid=1879053
CSS : http://www.expertrating.com/transcript.asp?transcriptid=1870619
Odesk Profile: http://www.odesk.com/users/~~3a2d7f591313701b
RentACoder Profile:
http://www.rentacoder.com/RentACoder/DotNet/SoftwareCoders/ShowBioInfo.aspx?lngAuthorId=6995323
LinkedIn Profile: http://ro.linkedin.com/in/alexandrudinulescu
XHTML/CSS/jQuery Blog -> http://alexdweb.com/blog
MainWebsite: http://alexdweb.com
On Mon, Nov 23, 2009 at 11:54 PM, Dexter <[email protected]> wrote:
> Hi,
> I have a div which appears when a textbox gets focus. DIV has n
> number of textboxes. I want to say display:none when a user Clicks
> anywhere in the window. Div should not close if the user is switching
> between textboxes.
>
> All these jquery plugins, say the calendar control closes if user
> clicks outside. How is that happening? Any idea?
>
> I have checked
>
> http://blog.josh420.com/archives/2007/11/determine-if-any-other-outside-element-was-clicked-with-javascript.aspx
> but it doesnt quite help for me since I cant keep track of ids.
>