views:

24

answers:

0

I am using the jquery datepicker and unfortunately when I click on a date, it is not changing the value of the input text box. When I click on a date, it changes the text but the value doesn't change when I inspect it. Any suggestions on how to resolve this?

EDIT: It turns out this is not a problem at all. There was a duplicate records issue.

/** Javascript */
    accounting      : function(ls) {
        $.ls = ls;
        $('a.get_by_date').live('click',ls.get_by_date);
        var form_tabs = $('#form-tabs');
        form_tabs.tabs({
            load    : function () {                 
                $.ls.buttons();
                Cufon.refresh();                    
                $('#accounting-submit').live('click',function(){                
                    var form = $('#create-accounting-form');
                    $.ajax({
                            type:'POST',
                            url:form.attr('action'),
                            data:form.serialize(),
                            cache:false,
                            success:function(){
                            }
                    });
                    return false;
                });
                $('.datepicker').datepicker({dateFormat: 'yy-mm-dd'});
            }
        });         
        return ls;
    },

        /** PHP */
          $date_data = array(
                    'value' => $project->created,
                    'id' => 'date-'.$project->id,
                    'name' => 'created-'.$project->id,
                    'class' => 'required datepicker'
                );
           '<td class="ui-widget-content">',
                            form_input($date_data),
                        '</td>',