He's trying to come up with a way to increment that select options by one...I haven't had time to look at this code to understand thoroughly.
Rick -----Original Message----- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of mattimus5...@gmail.com Sent: Thursday, April 09, 2009 4:03 PM To: jQuery (English) Subject: [jQuery] Re: generate AJAX data based on number of select elements Ok I see your code from the above post now. var reqData = { $('select.litqty').each( $(this).attr('name') : $(this).val(); ); } This would get the name and value of each select.litqty Is this what you are trying to achieve?? On Apr 9, 3:48 pm, "mattimus5...@gmail.com" <mattimus5...@gmail.com> wrote: > You are just trying to get the value of the select box and only the > select box??? > > So you have something like > <ul class="books"> > <li> Book 1 <select class="litqty"><option...... /></select></li>??? > <li> Book 2 <select class="litqty"><option...... /></select></li> > <li> Book 3 <select class="litqty"><option...... /></select></li> > <li> Book 4 <select class="litqty"><option...... /></select></li> > </ul> > > What do you need reqData to look like?