Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery('body').on('click','#yt22',function(){jQuery.ajax({'type':'post','url':$(this).attr("href"),'success':function(data) {
- var itemid = $(this).attr("id"); //this doesn't return id. Why?
- $.fn.yiiGridView.update("duties-grid");
- $.fn.yiiGridView.update("project-grid");
- //var url = $(this).attr("href"); //This doesn't return the url used in the parent function.
- console.log(itemid);
- //var arr = url.split("/");
- //var id = arr[arr.lenght-1];
- /*console.log(id);
- $.post("/YiiMain/app/ktcapskaita/index.php/form/UpdatedList", { "project_id": id }, function(data){
- var data = JSON.parse(data);
- $("#Duties_project_id").html(data.dropdown);
- });*/
- },'cache':false,'data':jQuery(this).parents("form").serialize()});return false;});
Advertisement
Add Comment
Please, Sign In to add comment