JQuery Facebox Plugin : Get it inside the form tag

前端 未结 4 1179
囚心锁ツ
囚心锁ツ 2020-12-18 12:19

I am wanting to use the Facebox plugin for JQuery but am having a few issues getting it running how I want. The div that houses the facebox content is created outside of th

4条回答
  •  盖世英雄少女心
    2020-12-18 12:48

    poking around the facebox.js I came across this line in the function init(settings)...

    $('body').append($.facebox.settings.faceboxHtml)
    

    I changed that to ...

    $('#aspnetForm').append($.facebox.settings.faceboxHtml)
    

    and it loads up in the form tag, not sure yet if there are any side effects

提交回复
热议问题