Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery close current DIV

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43905
    zemaker
    Participant

    Alright guys I am a newbie to jQuery and cant get this one figure out. I have a alert message that has a (x) button to close the current popup. However the way I have it now it will close all the dialog boxes if there are multiple ones on the page. What I need is a way to only close the parent div of the (x) button.

    Here is the link to the working code: http://codepen.io/anon/pen/FxKei

    thanks!

    #130732
    Senff
    Participant

    I would just use $(this).parent() for this: http://codepen.io/senff/pen/fqmFo

    #130733
    zemaker
    Participant

    That is exactly what I needed, thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.