How to pass dynamic variable to ajax : i have this

    <input id="test1" value="1" />
    <button onclick="kontakte(this)">KLICK1</button>
    <input id="test2" value="2" />
    <button onclick="kontakte(this)">KLICK2</button>
    <input id="test3" value="3" />
    <button onclick="kontakte(this)">KLICK3</button>

Jquery:

    function kontakte(e){
       var test = ??????;
       alert(test);
    }

now when i Klick1 i want to get 1 as value test, how can i do that?
