EQnoble
Well-known member
To you js wizards out there, specifically petaining to jQ....does this look OK to you. I replaced the api call in this example as to not give away what I am working on right now. This works currently but I would like to be sure it is a proper usage of and safe to use as far as not breaking any other jQ functionality. Thanks ahead of time.
Code:
<script>
$('.xxxXkush_wrap').each(function() {
var toggle = $('.xxxXkushthingy', this), content = $('.xxxXThingyCorr', this);
toggle.click(function(nothanks) {
nothanks.preventDefault();
$(content).toggle();
});
});
</script>
CODE TAG EDITED: 8:19 pm est 7.8.11