English 中文(简体)
Js 编码没有用装满成分的麻醉剂执行
原标题:Js code not executed with ajax loaded content

I m 利用Twitter Boots Cap modale显示一个装满Ajax的表格。

我在 but子上点击,以显示 mo虫,它会通过一个jax挖掘其内容:

$( #team_join_modale_show ).on( click , function(e) {
    e.preventDefault();
    var href = $(e.target).attr( href );

    $.get(href, function(data) {
        $(data).modal();
    });
});

然后,标号为“#team_join_ Format”的 mo(以前在OMD中是 t)。 有一个表格“Najax_form_team_join”。

$( #team_join_modal ).on( shown , function () {
    $( #ajax_form_team_join ).ajaxForm({
        target:         #errorTeamJoin ,
        clearForm:     true
    });
});

www.un.org/spanish/ecosoc 问题是, s牛(Noajax_form_team_join ).ajaxForm(不被处决),因此我的形式不正确。

我试图将这一事件横跨我的小.,把.改成活面,变成新的方法。 什么是失踪?

最佳回答

你们可以把活动束缚在成功履行阿马齐格世界大会职能时。

$( #team_join_modale_show ).on( click , function(e) {
    e.preventDefault();
    var href = $(e.target).attr( href );
    $.get(href, function(data) {
        var $data = $(data);
        $data
          .on( shown , function () {
            $( #ajax_form_team_join , $data).ajaxForm({
              target:  #errorTeamJoin ,
              clearForm: true
            });
          })
          .modal();
    });
});

这一点可以更好地加以考虑。

问题回答
$( #team_join_modale_show ).on( click , function(e){
    e.preventDefault();
    var href = $(e.target).attr( href );
    $.get(href, function(data) {
        $(data).modal();
    });
    $( #ajax_form_team_join ).ajaxForm({
        target: #errorTeamJoin ,
        clearForm: true
    });
});

引证。





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签