I guess this is the answer to my question -- bind( type, [data], fn )
If I use bind, I can pass in data to event handlers. ~PK On Mon, Jan 18, 2010 at 12:48 AM, Patrick <kenned...@gmail.com> wrote: > What is the best way to get data into jQuery? Obviously, jQuery > separates data and presentation. How can I pass in a parameter? > Below, you can see how I called a method with a hardcoded value, but > I want to dynamically pass in a value from web page. > > $(document).ready(function() > { > > /* tweet status id number */ > getTwitter('7833519704'); > > }); > > What is the recommended strategy when using jQuery? Should I use a > different event? It may mean that I should employ a hybrid method or > technique. > > Any ideas or recommendations are appreciated. > > Thanks. Pat >