title: how can we concatnate input field value (in array) with other input field for from submission
body: <p>I'm editing form's input field data and i know what m going to ask,is not the way to do submission of form data but i was totally stuck to get the value datetimepicker in ng-model(actually i need to say that i got the value in ng-model but not in array as i got the value of another one in array which is named as editAdsData).so i want to submit some input field s value individually.i know most of the ppl will be confused what i want to ask. let's take look of my code everything would be clear.</p>
  
  <p>In view:</p>
  
  <p>//create a form</p>
  
  <pre><code> &lt;form ng-submit="edit_jobs('&lt;?php echo $employer_jobs-&gt;id; ?&gt;','&lt;?php echo $employer_jobs-&gt;employer_id; ?&gt;')" class="form-preview-display" method="post"  name="submitAdsForm"&gt;
      &lt;input type = "hidden" ng-init="editAdsData.comp_name = '&lt;?php echo $employer_jobs-&gt;comp_name;?&gt;'"&gt;
      &lt;input placeholder="Company Name" id="company_name" value="" name="company_name" ng-model="editAdsData.comp_name" ng-pattern = "/^[a-zA-Z ]*$/" minlength="2" maxlength="150" required form-field="submitAdsForm" type="text" class="form-control"&gt;
      &lt;input type = "hidden" ng-init="start_date = '&lt;?php echo $employer_jobs-&gt;start_date;?&gt;'"&gt;
      &lt;input type='text' class="form-control" id="start_date" name="start_date" ng-model="start_date" datetime-picker date-only /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>so editAdsData is an array, where i want to store all input fields value.but i 'm still confused why i'm getting the value of start_date in editAdsData.
  That's why i'm trying to post it individually.</p>
  
  <p>So in Controller:</p>
  
  <pre><code>  $scope.edit_jobs = function($id,$emp_id){
             Data.editJobs($.param($scope.editAdsData),$.param($scope.start_date),$.param($scope.end_date),$id,$emp_id).success(function (data) {
              if (data.status == 0) {
                  // location.reload();
              }else{
                  // location.reload();
              }   
          });
      };
  </code></pre>
  
  <p>In services:</p>
  
  <pre><code> this.editJobs = function ($data1,$data2,$data3,$id,$emp_id) {
      return $http.post(site_url + "User/User/editJobsData/" + $id + "/" + $emp_id , $data1 + "&lt;br&gt;" + "[start_date]=&gt;" + $data2 + "&lt;br&gt;" + "[end_date]=&gt;" + $data3);
  };
  </code></pre>
  
  <p>and now i want the value of data1,data2 and data3 should be concatnate as we get the value of a single array like:</p>
  
  <pre><code>(
  [comp_name] =&gt; abc
  [min_salary] =&gt; 123
  [max_salary] =&gt; 12345
  )
  </code></pre>
  
  <p>So, can anyone help me to get this.Any help will be appreciated.</p>
  
  <p>Thanks in advance.</p>