CodeIgniter Forums

Full Version: jquery datepicker stops working with JSON
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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();
             }
         });
}