I have this code which works ok, but i was wondering if it could be done faster with jquery to get the index from input name attribute
<input name="inp[myindex]" value="bla" />
and the jquery
var $idx = $this.attr('name');
var $split = $idx.split('[');
$idx = $split[1];
$idx = $idx.replace(']', '');
Thanks in advance!