Quantcast
Channel: jQuery - once item is clicked, grab data-item for li and apply a strike through to text in li (animate?) - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by benomatis for jQuery - once item is clicked, grab data-item for li...

The argument you passed through on the top will also have to be defined as a parameter of your strikeThrough() function so you can make use of that when defining which element to strike through.So...

View Article



Answer by Selvakumar Arumugam for jQuery - once item is clicked, grab...

You need to add arg in the strikeThrough function definitionYou cannot use this object as the function is called on window scope, so the this would be referring to window object inside strikeThrough...

View Article

jQuery - once item is clicked, grab data-item for li and apply a strike...

I have a bunch of images that correspond to a list containing their names.When the image is clicked it fades out the image then using data-item finds its corresponding name on the list and then crosses...

View Article
Browsing latest articles
Browse All 3 View Live


Latest Images