How can get value 2011 in input:name with jquery?
<input type="text" name="hi[2011][]">
<button>Click me</button>
<input type="text" name="hi[2011][]">
$('button').click(function() {
var f_offset = $('input').prop('name');
alert(f_offset);
}
Using match:
Example