¡@

Home 

2014/10/16 ¤W¤È 12:02:27

jquery Programming Glossary: changetag.php

How to call second jQuery #.ajax instance on success of first and update page

http://stackoverflow.com/questions/5486934/how-to-call-second-jquery-ajax-instance-on-success-of-first-and-update-page

jQuery that is triggered on click of a link with the class 'changetag' . I'm using .ajax to update the database via changetag.php. I then change the visual appearance of the link by toggling the class between on off. The code is as follows function .changetag.. .changetag .click function var element this var I element.attr id var info 'switch_tag ' I .ajax type POST url _js changetag.php data info success function #li_ I .toggleClass off on element.toggleClass off on return false Works perfectly. But now.. .changetag .click function var element this var I element.attr id var info 'switch_tag ' I .ajax type POST url _js changetag.php data info success function .ajax url _js loaddata.php success function results '#listresults' .empty '#listresults'..