简体   繁体   中英

calling php with jquery file using jquery code

Edited: I am trying to follow this pagination tutorial . I already made it work. However when I'm trying to load it through calling the php file(pagination), the jquery in the tutorial is not working. Do you have any idea why?

<script>
function ajax_loadpage(loadUrl,output_container)
    {
        $.post
        (
            loadUrl,
            {language: "php", version: 5},function(responseText){$(output_container).html(responseText);},"html"
        );
    }

ajax_loadpage("url1.php","#div_wrapper_or_container");
</script>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM