jQuery plugin conflicts - please assist

后端 未结 6 1721
一个人的身影
一个人的身影 2021-01-21 22:18

The aim is to show a form which will update the div on the page with the result

  1. load this [page]
  2. click the linkto show the form
  3. submit the form
6条回答
  •  醉酒成梦
    2021-01-21 22:40

    In the example that doesn't work, if you bind the ajaxForm when you display the form it should work fine.

    // you may want to use better/faster selector then 'a' but in this example it 
    // will work
    $('a').click(function () {
        $('#feditform').fadeIn('slow').ajaxForm(options);
        return false;
    });
    

    Add above instead of jQuery.facybox({ div: '#formDiv' }); return false and it should work as expected.

提交回复
热议问题