How do I disable a click function when clicked to allow form text input clicking?
===

I have a div that when clicked opens a form inside the div via jquery .click function. 

This works great until I need to click inside the form on text inputs! Doh!

How can I disable the click function when this particular div is "open" (i.e. the form is showing). And then return the click function when the div is "closed" again?