title: Remove string from string jQuery
body: <p>Ignore my novice knowledge in jQuery. I started to learn recently and I have a challenge in front of me. I have a checkbox with names checkbox_0, checkbox_1 and want to remove &quot;checkbox_&quot; from the strings so that I would use the 0, 1 in my loop to extract the data for that index. Thanks</p>
  <p>aData value alerts me the value checkbox_0, checkbox_1 etc. those are the checkboxes selected.</p>
  <pre><code>submitButton.on(&quot;click&quot;, function() {
             $(&quot;Table :checked&quot;).each(function(e) {
                  var iData =Table.fnGetData( this.parentNode);
                  // Strip of the checkbox_ from the string
                  for(var i=0; i&lt;=iData.length; i++) {
                    aData = iData[i][7];
                  }
                  alert(aData);
                  Table.fnDraw();             
                   
              });
          });
  </code></pre>