• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
jquery datepicker stops working with JSON

#1
[eluser]jvk22[/eluser]
I'm passing a form to my script via JSON and it works fine, except for the jquery datepicker stops working

Code:
$("#new_task").live('click',function(){

  show_add_task();

});


Code:
function show_add_task()
{
  $.ajax({
             type: "POST",
             url: "tasks/ajax_show_add_task",
             data: {
              'submit':'submit',
              },
             cache: false,
             dataType:'json',
             success: function(msg) {

     $(".add_task").html(msg.message);
     $(".add_task").show();
             }
         });
}


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.