[jQuery] Re: Having problems getting index() and closest() to work

2009-02-05 Thread Ricardo Tomasi
duplicate: http://groups.google.com/group/jquery-en/browse_thread/thread/1b8e73583661fa52/ec7d0d275d484f66?hl=en#ec7d0d275d484f66 On Feb 5, 9:19 am, paulswansea wrote: > Hi, > > I have a page with multiple tables, and need to get the index value of > a cell with a price which i click on, so i ca

[jQuery] Re: Having problems getting index() and closest() to work

2009-02-05 Thread ksun
I am not sure of the functions you have used, 'index' and 'closest', I have not seen them, atleast it is not part of the cheat sheet I use. ok, the following code could solve your problem, //1) get the quantity above the price that is clicked var tableDom = $(this).parents('table')[0]; var quan