Skip to content

Instantly share code, notes, and snippets.

@jcreamer898
Created June 19, 2012 13:54
Show Gist options
  • Save jcreamer898/2954357 to your computer and use it in GitHub Desktop.
Save jcreamer898/2954357 to your computer and use it in GitHub Desktop.
Exclude a child.
<li class="selected">
<div class="item-desc">
<h2>Basic Party Pack</h2>
<p><span>$32 </span>for 2 guests</p>
<p class="per">$15.79 per guest</p>
<a title="View Details" href="#/abc1" class="selected">View Details</a>
</div>
<div class="add">
<form>
<label for="qty">Qty: <input type="text" id="qty_q0" class="qty"></label>
<input type="image" alt="Select Item" src="img/btn-select-item.png" class="action-button">
</form>
</div>
</li>
$('li').on(self.options.activateEvent, function(e) {
e.preventDefault();
// Exclude clicks on el's in the add div?
if (!$(e.target).parents('.add').length) {
self._vars.currentSlide = i;
self._activateSlide(i);
self._cycleStop();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment