I\'m trying to pass \"this\" from a clicked span to a jQuery function that can then execute jQuery on that clicked element\'s first child. Can\'t seem to get it right...
please use it like this first thing give a class name to tag p like "myp"
then on use the following code
$(document).ready(function() { $(".myp").click(function() { $(this).children(":first").toggleClass("classname"); // this will access the span. }) })