I Created A Dialog, Now How Can I Close It?

后端 未结 5 1467
深忆病人
深忆病人 2021-01-25 22:53

I have included a link to my site below for review of the JS in the head section, as well as to allow YOU to see how I set it all up. If you don\'t want to use the link, I\'ll a

5条回答
  •  孤独总比滥情好
    2021-01-25 23:28

    If you're using jquery, you could do it with the "live" method. That will attach event handlers to any new elements that appear on the page even after an ajax request. So if you gave the close bit a class:

    Nope, Get this out of the way
    

    You could use this bit if jquery:

    $('.close_dialog').live('click', function(){ $('.DoYouHaveADirtBikeForSaleBox').remove(); });

    Hope that helps :-)

提交回复
热议问题