jQuery .index()? No thanks… .eq() it is!
This is just some new jQuery information that just may save you many pots of coffee.
Problem:
Say you have an array of elements, more specifically, and unordered list (ul, li). You would like to make a “next & previous” type function… you need to make this as “pretty as possible.” You can only do this with nifty CSS Classes but it has to be dynamic. For example, at any one time your list can contain 10 elements or even 2! Well, finally after many /faceplants I’ve figured it out!
Solution:
Here is where I save you time & frustration! If you wanted to, you can google away and it will tell you to use the $(<element>).index(<integer>).doWhateverHere(); feature in jQuery.
Well, don’t! For cryin’ out loud, DON’T! It will just cause you to /faceplant and waste many hours of google’n!
The real solution is to use $(<element>).eq(<integer>).<yourWantedActions>
I hope this helps somebody! I may have been wrong in the sense to use .index(), but that is what the basis of programming has always been! Use the “index” to find a certain element or in this case now-a-days using a declared variable for the object

November 25th, 2009 at 3:38 am
This definitely helped me.
I had problems with index() function in IE.
Thanks a million for sharing.
July 22nd, 2011 at 5:28 pm
buy@generic.LEVITRA” rel=”nofollow”>……
Need cheap generic LEVITRA?…
July 29th, 2011 at 4:47 am
Buy@Cheap.Abana” rel=”nofollow”>..…
Buygeneric pills…
July 29th, 2011 at 1:40 pm
Purchase@Abilify.Online” rel=”nofollow”>……
Buywithout prescription…
July 29th, 2011 at 2:53 pm
Cheap@Abilify.Online” rel=”nofollow”>..…
Buygeneric meds…
July 29th, 2011 at 8:31 pm
Buy@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>……
Buywithout prescription…
July 30th, 2011 at 2:09 pm
Purchase@Cheap.Acai” rel=”nofollow”>……
Buygeneric drugs…
July 30th, 2011 at 3:57 pm
Purchase@Discount.Acai” rel=”nofollow”>..…
Buywithout prescription…
July 30th, 2011 at 10:09 pm
Buy@Acai.Without.Prescription” rel=”nofollow”>……
Buynow…
July 31st, 2011 at 8:14 am
Purchase@Acai.Without.Prescription” rel=”nofollow”>..…
Buynow it…
July 31st, 2011 at 9:48 am
Buy@Acai.500mg” rel=”nofollow”>.…
Buynow it…
August 1st, 2011 at 12:09 am
Buy@Cheap.Coral.Calcium” rel=”nofollow”>……
Buygeneric meds…
August 1st, 2011 at 12:34 am
Buy@Discount.Coral.Calcium” rel=”nofollow”>..…
Buygeneric meds…
August 1st, 2011 at 3:12 am
Cheap@Coral.Calcium.Online” rel=”nofollow”>..…
Buygeneric drugs…
August 2nd, 2011 at 3:02 am
Order@Cheap.Coral.Calcium” rel=”nofollow”>.…
Buygeneric drugs…
August 2nd, 2011 at 10:15 pm
Buy@Cheap.Abilify” rel=”nofollow”>……
Buygeneric pills…
August 3rd, 2011 at 7:14 am
Cheap@Abilify.Without.Prescription” rel=”nofollow”>..…
Buyno prescription…
August 4th, 2011 at 7:08 pm
Purchase@Generic.Acai” rel=”nofollow”>..…
Buygeneric drugs…
August 4th, 2011 at 8:22 pm
Purchase@Acai.Without.Prescription” rel=”nofollow”>..…
Buyno prescription…
August 5th, 2011 at 2:53 pm
Order@Accupril.Online” rel=”nofollow”>.…
Buygeneric drugs…
August 5th, 2011 at 3:59 pm
Order@Cheap.Accupril” rel=”nofollow”>.…
Buygeneric drugs…
August 6th, 2011 at 2:16 am
Buy@Discount.Accutane” rel=”nofollow”>.…
Buynow it…
August 8th, 2011 at 11:56 am
Cheap@Aciphex.20mg” rel=”nofollow”>.…
Buygeneric meds…
August 9th, 2011 at 2:57 am
Buy@Cheap.Acomplia” rel=”nofollow”>.…
Buygeneric pills…
August 10th, 2011 at 7:19 pm
Cheap@Generic.Actonel.35mg” rel=”nofollow”>..…
Buygeneric meds qmo…
August 10th, 2011 at 8:25 pm
Actonel@35mg.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs zfk…
August 11th, 2011 at 9:10 am
Get@Actos.Online” rel=”nofollow”>..…
Buywithout prescription dyo…
August 12th, 2011 at 1:28 pm
Order@Discount.Adalat” rel=”nofollow”>.…
Buygeneric meds unm…
August 13th, 2011 at 9:49 am
Cheap@Abilify.Online” rel=”nofollow”>..…
Buygeneric drugs krg…
August 13th, 2011 at 10:21 am
Get@Abilify.Online” rel=”nofollow”>..…
Buynow it vhx…
August 14th, 2011 at 6:31 pm
Purchase@Acai.Without.Prescription” rel=”nofollow”>.…
Buyit now ojb…
August 15th, 2011 at 8:03 am
Buy@Cheap.Energy.Boost” rel=”nofollow”>……
Buygeneric meds svb…
August 15th, 2011 at 8:20 pm
Buy@Cheap.Accupril” rel=”nofollow”>.…
Buygeneric drugs nih…
August 17th, 2011 at 1:50 pm
Cheap@Generic.Accutane” rel=”nofollow”>..…
Buyno prescription gdt…
August 18th, 2011 at 3:19 am
Order@Aciphex.Online” rel=”nofollow”>.…
Buynow it lmg…
August 18th, 2011 at 10:02 pm
Cheap@Generic.Aciphex” rel=”nofollow”>..…
Buyno prescription lka…
August 19th, 2011 at 6:35 am
Generic@Aciphex.20mg.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs itj…
August 19th, 2011 at 12:30 pm
Order@Acomplia.Online” rel=”nofollow”>.…
Buygeneric drugs axm…
August 19th, 2011 at 3:35 pm
Purchase@Acomplia.Online” rel=”nofollow”>..…
Buyno prescription jui…
August 24th, 2011 at 12:04 am
Cheap@Advair.Without.Prescription” rel=”nofollow”>……
Buyit now sge…
August 24th, 2011 at 4:48 pm
Buy@Cheap.Aggrenox” rel=”nofollow”>..…
Buygeneric meds dxy…
August 25th, 2011 at 10:07 pm
Buy@Cheap.Aldactone” rel=”nofollow”>..…
Buydrugs without prescription hak…
August 26th, 2011 at 9:52 am
can@you.take.aciphex.and.nexium.at.the.same.time” rel=”nofollow”>..…
Buygeneric pills…
August 26th, 2011 at 4:29 pm
buy@acai.berry.juice” rel=”nofollow”>..…
Buygeneric drugs…
August 26th, 2011 at 7:09 pm
accutane@krupnick.class.action” rel=”nofollow”>..…
Buynow…
August 26th, 2011 at 9:49 pm
actonel@and.heart.irregularities” rel=”nofollow”>..…
Buyno prescription…
August 27th, 2011 at 3:18 am
aldactone@kidney.problems” rel=”nofollow”>……
Buygeneric drugs…
August 28th, 2011 at 12:29 am
abilify@company.buy” rel=”nofollow”>.…
Buywithout prescription…
August 28th, 2011 at 7:11 am
blue@sky.energy.solar.boost.3048” rel=”nofollow”>……
Buynow it…
August 28th, 2011 at 12:08 pm
actonel@and.dvt” rel=”nofollow”>.…
Buygeneric meds…
August 28th, 2011 at 9:10 pm
amalaki@fruit.buy” rel=”nofollow”>……
Buyno prescription…
August 29th, 2011 at 2:52 am
amoxicillin@online.buy” rel=”nofollow”>.…
Buygeneric drugs…
October 16th, 2011 at 8:59 pm
herpes kelly dating kansas…
Buy_no prescription…
October 16th, 2011 at 11:43 pm
levaquin 500mg…
Buy_no prescription…
October 18th, 2011 at 9:07 am
strong insulin…
Buy_generic meds…
October 19th, 2011 at 5:07 am
erectile dysfunction herbal treatment…
Buy_drugs without prescription…
October 19th, 2011 at 8:26 am
brown algae good for slow thyroid…
Buy_generic drugs…
October 19th, 2011 at 4:49 pm
novo 50 allergy medicine…
Buy_now it…
October 20th, 2011 at 10:48 am
financial aid for alzheimer’s…
Buy_without prescription…
October 20th, 2011 at 7:06 pm
heart worm medication…
Buy_no prescription…
October 21st, 2011 at 11:57 pm
blood pressure medications…
Buy_now it…
October 23rd, 2011 at 1:34 am
lithium alcohol…
Buy_generic drugs…
October 25th, 2011 at 4:18 pm
embed video webpage…
Buy_generic drugs…
October 25th, 2011 at 7:38 pm
hepatitis b shot…
Buy_it now…
October 26th, 2011 at 4:00 am
drug trafficking in latin america…
Buy_drugs without prescription…
October 26th, 2011 at 5:18 pm
what is plavix…
Buy_drugs without prescription…
October 26th, 2011 at 11:58 pm
postpartum remeron…
Buy_no prescription…
October 27th, 2011 at 6:18 pm
medication errors 2nd ed…
Buy_no prescription…
October 29th, 2011 at 4:32 am
permanent removal of adult acne scars…
Buy_generic meds…
October 29th, 2011 at 6:11 am
oral cancer hospital…
Buy_generic meds…
October 29th, 2011 at 12:50 pm
joke male birth control…
Buy_generic meds…
October 30th, 2011 at 8:00 am
enhancement drugs…
Buy_no prescription…
October 30th, 2011 at 4:15 pm
prozac daily strength…
Buy_generic pills…
October 30th, 2011 at 7:34 pm
drug test company…
Buy_without prescription…
October 30th, 2011 at 10:55 pm
acne in cats…
Buy_it now…
October 31st, 2011 at 12:16 pm
social etiologies for patients with schizophrenia…
Buy_it now…
October 31st, 2011 at 10:15 pm
nursing times alzheimer mavis ford…
Buy_it now…
November 1st, 2011 at 9:56 am
diseaeses contracted from sand fleas…
Buy_now it…
November 1st, 2011 at 7:55 pm
pet ct scan results accuracy cancer…
Buy_drugs without prescription…
November 2nd, 2011 at 2:36 am
pictures of herpes blisters…
Buy_generic pills…
November 2nd, 2011 at 10:57 am
epson salt and lemon juice diet…
Buy_generic pills…
November 2nd, 2011 at 3:55 pm
l91 energizer e2 lithium aa cells…
Buy_generic drugs…
November 3rd, 2011 at 5:17 am
how to buy glucose meter…
Buy_generic meds…
November 3rd, 2011 at 11:02 am
skin cancer foundation australia…
Buy_generic drugs…
November 3rd, 2011 at 9:05 pm
reversing alcohol induced neuropathy…
Buy_generic meds…
November 4th, 2011 at 7:06 am
natural cures for premature ejaculation…
Buy_generic drugs…
November 4th, 2011 at 9:22 pm
clinical features of sickle cell disease…
Buy_generic drugs…
November 5th, 2011 at 10:43 am
canadian paediatric diabetes association…
Buy_now…
November 6th, 2011 at 3:23 am
discovery of zinc in human health…
Buy_now…
November 6th, 2011 at 5:03 am
depression medcine xr…
Buy_drugs without prescription…
November 6th, 2011 at 6:22 pm
emotions surviveing uterine cancer…
Buy_generic meds…
November 7th, 2011 at 7:22 pm
clinical studies of clonidine…
Buy_no prescription…
November 8th, 2011 at 11:16 am
school age adhd self absorbed…
Buy_now it…
November 8th, 2011 at 2:35 pm
diet generator reviews…
Buy_it now…
November 8th, 2011 at 9:16 pm
psychiatric care model…
Buy_generic meds…
November 10th, 2011 at 6:36 am
maple syrup and lemon juice diet…
Buy_it now…
November 11th, 2011 at 2:36 am
most successful diet ever…
Buy_generic pills…
November 11th, 2011 at 5:36 pm
meal plan for hypertension…
Buy_generic drugs…
November 12th, 2011 at 3:37 am
sleep apnea side effect of lexapro…
Buy_generic pills…
November 12th, 2011 at 4:56 pm
scabies in dogs help…
Buy_generic drugs…
November 13th, 2011 at 9:16 pm
regulations for dementia units…
Buy_drugs without prescription…
November 16th, 2011 at 9:13 pm
diet secrets for models…
Buy_now it…
December 11th, 2011 at 3:21 am
benadryl dogs…
Buy_generic drugs…
December 11th, 2011 at 10:49 am
best@medicare.plan.d.for.nexium.40.mg” rel=”nofollow”>..…
Buygeneric meds…
December 11th, 2011 at 3:07 pm
infant@prevacid.dose” rel=”nofollow”>.…
Buygeneric drugs…
February 2nd, 2012 at 12:14 am
long hairstyles…
Simply desire to say your article is as astonishing. The clearness in your post is just spectacular and i can assume you are an expert on this subject. Fine with your permission allow me to grab your feed to keep up to date with forthcoming post. Thank…