This has been bugging me for ages. IE < 9 does not support the CSS3 last-child pseudo class. I’ve created a _very_ simple jQuery plugin to add a CSS class “last-child” to the element that is the last child of a DOM element.
It performs this recursively, so it’ll apply the class to the last child of an element as well as to the last child of all it’s children…and so on and so forth.
It’ll perform this on each of the set of matched elements in a jQuery object. So you can have it traverse the whole, of your page by providing a jQuery object with the <body> element in it, or you can pick and choose DOM elements to apply the plugin to for efficiency. For instance, you might only need the "last-child" class to be applied to the last child of an unordered or ordered list:
$('body').lastChild(); // Applies to all elements attached to the document.body
$('ul, ol').lastChild(); // Applies to all elements in an unordered or ordered list
By default, the plugin applies the CSS class to a restricted set of DOM element types. You can specify the types of DOM elements to apply the class to by passing an options object to the function. In this way you can also specify the name of the CSS class that will be applied:
$('ul, ol').lastChild({
tags:['li'], // Only elements with the tag name 'li' will have the class applied to them
cssClass:'ie-last-child' // The CSS class name will be 'ie-last-child'
});
For super shorthand, you can simply pass a string to the lastChild function – which it presumes to be the CSS class you want to use:
$('ul, ol').lastChild('ie-last-child');
You can download the plugin here.
Note, while I created this plugin to get around my IE problem, it is not built specifically for IE. If you only want IE to receive these classes, you’ll probably want to do something like:
if($.browser.msie) {
$('body').lastChild();
}
…but obviously preferably using Modernizr:
if($('.ie6, .ie7, .ie8').length) {
$('body').lastChild();
}
Enjoy!
Wow that was strange. I just wrote an extremely long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyhow, just wanted to say great blog!
Do you mind if I quote a few of your articles as long as I provide credit and sources back to your website? My blog is in the exact same niche as yours and my visitors would truly benefit from some of the information you present here. Please let me know if this ok with you. Appreciate it!
Some tips i have always told persons is that while looking for a good internet electronics shop, there are a few issues that you have to remember to consider. First and foremost, you want to make sure to choose a reputable and also reliable shop that has obtained great reviews and ratings from other individuals and business world people. This will make certain you are getting along with a well-known store to provide good assistance and support to the patrons. Many thanks for sharing your notions on this blog site.
Great ? I should definitely pronounce, impressed with your site. I had no trouble navigating through all tabs as well as related information ended up being truly simple to do to access. I recently found what I hoped for before you know it in the least. Reasonably unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your client to communicate. Excellent task..
Thanks for the suggestions you have discussed here. Additionally, I believe there are many factors that keep your insurance premium down. One is, to think about buying autos that are in the good report on car insurance organizations. Cars which are expensive are usually more at risk of being stolen. Aside from that insurance coverage is also in accordance with the value of your vehicle, so the more pricey it is, then higher the actual premium you have to pay.
I?ve read a few good stuff here. Certainly worth bookmarking for revisiting. I surprise how much effort you put to make such a fantastic informative website.
As I web-site possessor I believe the content matter here is rattling magnificent , appreciate it for your efforts. You should keep it up forever! Good Luck.
Breast cancewr klinikHugee dqncing tits tubesCelkebrity
fakes ude listHoww tto poee sex iin a photoo for you boyfriendMadina llesbian picturesTeey oper nudeTraining tps for adultt ddog chewingMilff
pics thumbsEmmaa thomson nude sexPiano pedagovy teaching adultsCsss bqckground iimage blak border bottomTeeen paty
phot sharePctures of ordionary women’s breastsErotic bachewlorette
storiesGayy beggar’s operaOh virgin motherAsiuan gentlemans clubLauiren graham nudee
inn bbad santaCaroal tunnel syyndrome trigger thumbBestt predgnacy sexThickk sexy women picsMumm get hardcore fucled bby sonPeta grunte
freee nuce picsNude hotos off hott babesPiissing camkers freeDeephroat vproSexyy hidxen cameraStoris sucing
the deer’s penisAdult theeaters inn northeqst ohioWomkens long leather ssexy glovesDinjsey slutsNorth lpuisiana vjntage tracttor clubFreee nbile nudre pics moviesWomenn hott curvy asse gallerySexxy
vampirre namesDogpikle pornoBaefoot contessa’s
reccipe foor asoan dressingHarfcore partyinng sitesBloow dick fuckong jobb pennis sexShakinmg that aass mp3Free onhline poen without sign upBeach blow jobb videosFreee
nde pic searchFree ssex picturs ffor the massesBigg black tiys iin latexSymptlm off vaginawl bacterial infectionShania twan sex storyMens adeult
videoVintage arfin electri fansFonnt hhindi inn ssex storyFrree downlkoad maturre womenThe
probleem of beinng gayBigg titt lesbian xnxxPacific naked islandCaribesn moels
escortsMake vista boot thumb driveAdult pdff pasaword recoveryWoood painbt stripperMature holke hairyFreee strapon videos nno registration amateursTeen challenge lolng
beach caTeeen titans starfire toplessMaure maan yoyng bboy scout https://gizmoxxx.cc/zone-anal Teenazge penus sizesRaver beauity pussy videosTinyy tsen irl ganvbanged monster cocksKendra wilkinson sexx video onlineSexxy karrinne
steeffans picsCorddero cfump sexualLesbbian mother hafing sexx wit
daughterVirginika heey nude picFetish roppe hangingLesbiaan strapon facefuckingYoung
diity slutsNickoy byrnbe nakedNudee marur womenBusty indians sexHansjob vidwo tgpAsioan thumb mainWaashington coujty regon seex offenderLactrating booobs torrentsWmen deepthroasting lomg cockSexua molestatio storiesPlayung ards nakedAmture young cuntBikini bars
recipeAdult costume dumpoty humptyHacked xxxx paysitesFree older women posing nudeSwingbers getawaysStraigght guy ffor gaay eyyes kyleHott black tee tgpPoorn spvKeyy weat swingedr resortsGias sexyEureka7 hentaiFreee porrn thumbs
galleryPorfland oregon porhography storesFffm pordn videoCompact dryer controls on bottomGirrl goone wild adult
Have you ever thought about including a little bit more than just your articles? I mean, what you say is valuable and everything. But imagine if you added some great pictures or video clips to give your posts more, “pop”! Your content is excellent but with images and video clips, this blog could undeniably be one of the best in its field. Very good blog!
I do enjoy the way you have presented this matter plus it really does offer us a lot of fodder for thought. Nevertheless, coming from everything that I have seen, I basically trust as the commentary pack on that people today keep on issue and in no way start on a tirade regarding some other news of the day. All the same, thank you for this superb point and while I can not agree with the idea in totality, I respect your viewpoint.
I do love the manner in which you have presented this particular challenge plus it really does present us a lot of fodder for thought. Nonetheless, coming from what precisely I have experienced, I basically trust when other commentary pack on that people remain on issue and in no way get started upon a soap box of the news du jour. All the same, thank you for this excellent piece and while I can not necessarily agree with the idea in totality, I regard the perspective.
Heya i am for the first time here. I came across this board and I find It really useful & it helped me out a lot. I hope to give something back and aid others like you helped me.
Hello there, I found your blog by the use of Google whilst looking for a similar topic, your web site got here up, it seems great. I have bookmarked it in my google bookmarks.
I have been exploring for a little bit for any high-quality articles or weblog posts on this kind of area . Exploring in Yahoo I finally stumbled upon this web site. Reading this info So i?m satisfied to convey that I have a very just right uncanny feeling I discovered just what I needed. I such a lot certainly will make certain to do not fail to remember this web site and give it a glance on a continuing basis.
Hi! I’ve been reading your weblog for some time now and finally got the courage to go ahead and give you a shout out from Houston Texas! Just wanted to mention keep up the great work!
Hi, Neat post. There is a problem with your site in internet explorer, would check this? IE still is the market leader and a big portion of people will miss your magnificent writing due to this problem.
I have learned result-oriented things through your website. One other thing I would like to say is the fact that newer computer system operating systems tend to allow a lot more memory to be used, but they in addition demand more ram simply to work. If an individual’s computer is not able to handle extra memory as well as newest software requires that memory increase, it could be the time to buy a new Personal computer. Thanks
Wow, this article is mind-blowing! The author has done a fantastic job of conveying the information in an engaging and informative manner. I can’t thank her enough for sharing such precious insights that have definitely enlightened my awareness in this subject area. Bravo to him for producing such a masterpiece!
Hello there, I found your blog via Google while looking for a related topic, your web site came up, it looks good. I have bookmarked it in my google bookmarks.
Thanks for the thoughts you have provided here. Additionally, I believe there are many factors which really keep your car insurance premium lower. One is, to contemplate buying cars that are within the good report on car insurance companies. Cars that are expensive are more at risk of being robbed. Aside from that insurance coverage is also based on the value of your automobile, so the more expensive it is, then higher your premium you spend.
Thanks for your beneficial post. Through the years, I have been able to understand that the symptoms of mesothelioma are caused by the build up connected fluid between lining in the lung and the breasts cavity. The infection may start inside chest region and distribute to other body parts. Other symptoms of pleural mesothelioma cancer include fat loss, severe breathing trouble, fever, difficulty ingesting, and puffiness of the neck and face areas. It needs to be noted that some people existing with the disease never experience just about any serious symptoms at all.
Out of my investigation, shopping for technology online can for sure be expensive, but there are some how-to’s that you can use to acquire the best things. There are often ways to come across discount bargains that could make one to have the best gadgets products at the cheapest prices. Good blog post.
Heya this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!
Thanks for your tips. One thing we have noticed is that often banks and financial institutions know the dimensions and spending habits of consumers and also understand that the majority of people max out their cards around the holidays. They sensibly take advantage of this fact and then start flooding your own inbox and snail-mail box by using hundreds of 0 APR credit cards offers just after the holiday season comes to an end. Knowing that when you are like 98 of all American community, you’ll jump at the possible opportunity to consolidate personal credit card debt and transfer balances for 0 interest rate credit cards.
One thing I’d really like to say is that car insurance cancelling is a hated experience and if you are doing the suitable things as a driver you simply won’t get one. Lots of people do obtain the notice that they are officially dropped by their insurance company and several have to struggle to get supplemental insurance from a cancellation. Low cost auto insurance rates are often hard to get after a cancellation. Having the main reasons pertaining to auto insurance termination can help drivers prevent completely losing in one of the most significant privileges out there. Thanks for the tips shared by means of your blog.
Hi, Neat post. There’s a problem with your web site in internet explorer, would check this? IE still is the market leader and a big portion of people will miss your fantastic writing due to this problem.
Fantastic website you have here but I was wondering if you knew of any community forums that cover the same topics talked about here? I’d really love to be a part of community where I can get feedback from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Cheers!
That is a really good tip particularly to those new to the blogosphere. Short but very accurate information… Appreciate your sharing this one. A must read article!
Thanks for the tips you share through this site. In addition, a lot of young women who become pregnant don’t even try and get health insurance coverage because they have anxiety they probably would not qualify. Although many states now require that insurers offer coverage in spite of the pre-existing conditions. Premiums on these kind of guaranteed options are usually bigger, but when with the high cost of medical care it may be the safer way to go to protect the financial future.
There is noticeably a bundle to learn about this. I assume you made sure good factors in options also.
I have observed that in the world these days, video games include the latest trend with kids of all ages. There are occassions when it may be unattainable to drag your children away from the video games. If you want the best of both worlds, there are lots of educational games for kids. Interesting post.
This site truly has all the information and facts I wanted concerning this subject and didn’t know who to ask.
Wow, incredible blog layout! How lengthy have you ever been blogging for? you made blogging look easy. The entire look of your web site is excellent, let alone the content material!
Oh my goodness! an incredible article dude. Thank you Nevertheless I’m experiencing challenge with ur rss . Don?t know why Unable to subscribe to it. Is there anybody getting identical rss downside? Anyone who knows kindly respond. Thnkx
With havin so much content do you ever run into any problems of plagorism or copyright violation? My site has a lot of completely unique content I’ve either authored myself or outsourced but it seems a lot of it is popping it up all over the web without my authorization. Do you know any solutions to help prevent content from being ripped off? I’d truly appreciate it.
I think this is among the most significant information for me. And i am glad reading your article. But should remark on some general things, The site style is great, the articles is really great : D. Good job, cheers
Thank you, I’ve recently been searching for info about this topic for ages and yours is the best I’ve discovered till now. But, what about the conclusion? Are you sure about the source?
I have taken note that of all types of insurance, health care insurance is the most dubious because of the conflict between the insurance policy company’s need to remain adrift and the user’s need to have insurance cover. Insurance companies’ revenue on wellbeing plans are incredibly low, so some companies struggle to earn profits. Thanks for the tips you write about through this site.
Thanks a lot for the helpful content. It is also my opinion that mesothelioma cancer has an very long latency time period, which means that indication of the disease may not emerge right until 30 to 50 years after the initial exposure to mesothelioma. Pleural mesothelioma, and that is the most common variety and has effects on the area throughout the lungs, will cause shortness of breath, upper body pains, and also a persistent coughing, which may lead to coughing up our blood.
I believe that is one of the so much important info for me. And i am glad reading your article. However want to commentary on some common issues, The website taste is wonderful, the articles is actually excellent : D. Just right process, cheers
bookmarked!!, I really like your web site!
In these days of austerity in addition to relative panic about getting debt, lots of people balk about the idea of having a credit card to make purchase of merchandise or maybe pay for a holiday, preferring, instead just to rely on this tried as well as trusted way of making payment – raw cash. However, if you possess the cash there to make the purchase in whole, then, paradoxically, that’s the best time to use the credit card for several causes.
This blog was… how do you say it? Relevant!! Finally I’ve found something which helped me. Thanks a lot!
Excellent beat ! I would like to apprentice while you amend your website, how could i subscribe for a blog website? The account aided me a acceptable deal. I have been tiny bit familiar of this your broadcast offered bright transparent concept
I need to to thank you for this very good read!! I certainly enjoyed every little bit of it. I’ve got you saved as a favorite to look at new things you post… Magento SEO Specialist https://preview.tinyurl.com/2a3qz288
I’ve been surfing online more than 3 hours today, yet I never found any interesting article like yours. It?s pretty worth enough for me. Personally, if all webmasters and bloggers made good content as you did, the net will be much more useful than ever before.
I’m extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you modify it yourself? Either way keep up the nice quality writing, it?s rare to see a nice blog like this one nowadays..
Another thing I’ve noticed is that often for many people, below-average credit is the results of circumstances above their control. For example they may happen to be saddled having an illness so they really have higher bills for collections. It can be due to a job loss and the inability to do the job. Sometimes divorce can really send the money in the wrong direction. Thanks for sharing your opinions on this web site.
I think this is one of the most important information for me. And i’m glad reading your article. But wanna remark on some general things, The web site style is ideal, the articles is really great : D. Good job, cheers
I do agree with all of the ideas you have presented in your post. They are really convincing and will definitely work. Still, the posts are too short for beginners. Could you please extend them a bit from next time? Thanks for the post.