1. I've started a massive SPAM purge, any accounts that have spammed are being removed, also for a short period new user signups are disallowed until the SPAM cleaning is finished.

hiding form problem (jquery)

Discussion in 'Java Script/AJAX' started by Rqqepqqq, Oct 26, 2011.

  1. Rqqepqqq

    Rqqepqqq New Member

    Joined:
    Jun 7, 2011
    Messages:
    179
    Likes Received:
    1
    Trophy Points:
    0
    i have a form that is hidden by default. (not really a form, but a div with a textarea and a button)

    if you click on a link this form becomes visable. (working)
    if you hit the submit button the content of the form is processed and the form becomes invisible again. (working)

    now i want that the form becomes invisible when the user clicks outside the textarea without submitting the form.

    i'm using the blur function, but i cannot submit anything anymore.

    How can i fix this.
    Loading...
  2. MarPlo

    MarPlo Member

    Joined:
    May 12, 2011
    Messages:
    69
    Likes Received:
    7
    Trophy Points:
    8
    Hi,
    Try have the textarea and submit button into the same div, than add onblur="this.style.display='none';" in that <div> tag.

Share This Page