getting value first offset name after click?
How can get value `2011` in `input:name` with jquery?

    <input type="text" name="hi[2011][]">



**[Example:][1]**

    <button>Click me</button>
    <input type="text" name="hi[2011][]">


    $('button').click(function() {
        var f_offset = $('input').prop('name');
        alert(f_offset);
    }


  [1]: http://jsfiddle.net/QRkjs/
getting value first offset name after click?
===

How can get value `2011` in `input:name` with jquery?

    <input type="text" name="hi[2011][]">



**[Example:][1]**

    <button>Click me</button>
    <input type="text" name="hi[2011][]">


    $('button').click(function() {
        var f_offset = $('input').prop('name');
        alert(f_offset);
    }


  [1]: http://jsfiddle.net/QRkjs/