*Hi*

*i use bootstrap datetimepicker to select date and when i click on button 
to submit form i get value null in controller but get all other values ?*

*it works only if i type date myself or change date text after select ??!!*

*i see that in html if i select it still has class "ng-valid ng-touched 
ng-pristine"  - but if change the text class changed to "ng-valid 
ng-touched ng-dirty ng-valid-parse" *

*HTML Code:*






*        <form name="form" method="post" ng-submit="SaveCustomer(); 
Cust={}">            <table class="table">                @* إسم العميل *@  
              <tr>                    <td style="width:175px; 
text-align:center; vertical-align:central">                        إسم 
العميل                    </td>                    <td>                    
    <div class="input-group">                            <span 
class="input-group-addon ion ion-person"></span>                            
<input type="text" class="form-control" placeholder="إسم العميل" 
ng-model="Cust.CustomerName">                        </div>                
    </td>                </tr>                 <tr>                         
                                 <div class="input-group date" 
id="datepickerDemo" style="width:250px;">                                  
      <input id="date1" name="date1" type="text" class="form-control" 
placeholder="التاريخ" ng-                                                   
         model="Cust.MirageDate">                                        
<span class="input-group-addon">                                            
<i class=" ion ion-calendar"></i>                                        
</span>                                    </div>                </tr>      
               </table>            <div class="clearfix left">              
  <button class="btn btn-primary mr5" type="submit" 
style="font-weight:bold; font-family:ae_AlMothnna;">Save</button>          
      <button class="btn btn-default" ng-click="Reset()" 
style="font-weight:bold; font-family:ae_AlMothnna;">Reset</button>          
  </div>        </form>so please how can i make it works ?*

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to