[jQuery] Re: generate AJAX data based on number of select elements

2009-04-09 Thread mattimus5...@gmail.com

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=litqtyoption.. //select/li???
li Book 2 select class=litqtyoption.. //select/li
li Book 3 select class=litqtyoption.. //select/li
li Book 4 select class=litqtyoption.. //select/li
/ul

 What do you need reqData to look like?


[jQuery] Re: generate AJAX data based on number of select elements

2009-04-09 Thread mattimus5...@gmail.com

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=litqtyoption.. //select/li???
 li Book 2 select class=litqtyoption.. //select/li
 li Book 3 select class=litqtyoption.. //select/li
 li Book 4 select class=litqtyoption.. //select/li
 /ul

  What do you need reqData to look like?


[jQuery] Re: jQuery function to click a link on the page

2009-04-09 Thread mattimus5...@gmail.com

try using window.open, its not jquery, just javascript, but you use it
to open new windows

On Apr 9, 10:07 am, CaptainABrad alexanderwbrad...@gmail.com wrote:
 http://abrad45.com/sites/beta/

 I have this almost working. When you drop the icons on the iMac
 Screen, the pages are supposed to load in a new tab. I was doing this
 by trying to have the action on drop click on a link on the page. I
 have things pretty close, but then realized that .click() will not
 work on actions which do not have .click() behaviors handled by
 jQuery. I also tried .trigger('click') to no avail. Right now, the
 drop function is working, but I removed the best functionality I had,
 which was to have the sites open in the current tab (which defeats the
 purpose in my mind).

 Stated simply, is there a way to either:
 1) Click a link on a page with jQuery, or
 2) Open a link in a new tab.

 Thanks.


[jQuery] Which is faster?? Accesing by class or id?

2009-04-06 Thread mattimus5...@gmail.com

Hey guys,
I was just wondering if there is a speed difference in which way you
access an element.
For example:
div class=conp class=para id=mineTest/p/div

Is it faster to use $(#mine)
-or-
to access the same element using the class, such as $(div p.para)
-or-
does it not even matter???

Just looking for some insight,
Thanks,
Matt