Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rand=222;
- data={type:"search",id:words};
- link='index2.php?option=com_rs&l=l&t=tarif&type=search';
- link=link+'&rand='+rand;
- $.post(link,data,function(res){
- //console.log(res);
- $("#listItem").empty().html(res);
- });
- //=============ajax
- var request = $.ajax({
- url: "index2.php?option=com_rs&view=pat&t=pasien&l=l",
- type: "POST",
- data: data,
- dataType: "json",
- success: function(msg) {
- $("#listItem").empty().html(msg.res);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement