I have an object with the id "4x153x9x10x173"
and I need to parse the integer "153"
from it into a variable using jquery?
objects.last().attr('id') // id = 4x153x9x10x173
var desired = objects.last().attr('id').split('x')[1];
jsFiddle demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With