title: remove array elements between two numbers using jquery
body: <p>Have to delete the array elements in the range of elements from another array</p>
  
  <p>My first array </p>
  
  <pre><code>var arr = ['900','930','1000','1030','1100','1130','1200','1230','1300','1330','1400','1430','1500']
  </code></pre>
  
  <p>another result array is</p>
  
  <pre><code>var data =['900','1000','1300','1400']
  </code></pre>
  
  <p>my output array should be </p>
  
  <pre><code>output = ['1030','1100','1130','1200','1230','1430','1500','1530']
  </code></pre>
  
  <p>i tried using for loop and slice but unable to delete the range of elements.</p>
  
  <pre><code>for(var i=0;i&lt;data.length;i++){
      if(jQuery.inArray(data[i], arr) !== -1){
        arr.splice(data[i]);
      }                           
  }
  </code></pre>