pass parms to JS

pass parms to JS

Hi

i read a couple of tutorials an try do understand jquery.
one question is in my head:
normally i have buttons like
  1. HTML
  2. <button type='button' name='testbtn' onClick='dosome('1','cars')' value='T1'>T1</button>     

Now in JQuery i would do something like this

  1. HTML
  2. <button type='button' id='idtestbtn' value='T1'>T1</button>     
  1. external JS-File
  2. $(document).ready(function()
    {
        $('#idtestbtn').click(function(){
            ...
        })
    });

How can i pass the parms"1" and "cars" to the jQuery Code for Click in the JS-File ??


Bye jogi