I have the following HTML that can appear but only one at a time:
<a id="menuRange" class="button" href="#">1 - 100</a>
<a id="menuRange" class="button" href="#">101 - 200</a>
<a id="menuRange" class="button" href="#">201 - 300</a>
and I used this code to get the range:
var $field = $('#menuRange');
var nums = $field.text().split('-').map(function (a) {
return parseInt(a, 10) + d * 100
});
Now I want to change the HTML into:
<a id="menuRange" class="button" href="#">Lines 1 - 100</a>
<a id="menuRange" class="button" href="#">Lines 101 - 200</a>
<a id="menuRange" class="button" href="#">Lines 201 - 300</a>
How can I make it so I still get nums data like before. In other words, how can I make it ignore the word "Lines " as though it was not there?
unique IDfor different elements.