Opened 11 years ago
Closed 11 years ago
#10065 closed bug (invalid)
.find() function error when i use css :before
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | selector | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
<li><a href="#" class="user_widget_last_purchase_log_button">Utolsó rendeléseid</a><div class="user_widget_last_purchase_log_div" style="display: block; "><ul><li class="user_widget_last_purchase_item_group_li" style="display: list-item; ">2011.08.16:<ul><li class="user_widget_last_purchase_item_name">Csirkés</li><li class="user_widget_last_purchase_item_name">Gesztenyepüré</li></ul></li><li class="user_widget_last_purchase_item_group_li" style="display: list-item; ">2011.08.16:<ul><li class="user_widget_last_purchase_item_name">Csirkés</li></ul></li><li class="user_widget_last_purchase_item_group_li" style="display: list-item; ">2011.08.16:<ul><li class="user_widget_last_purchase_item_name">Csirkés</li></ul></li></ul></div></li>
css: .user_widget_table .user_widget_last_purchase_log_div > ul > li > ul > li:before {
content: '- ';
}
jQuery('.user_widget_last_purchase_log_button').click(function(event)
{
event.stopPropagation(); var elem = jQuery(this).next('.user_widget_last_purchase_log_div'); if(elem.css('display') == "none") {
elem.slideToggle('slow',function() {
jQuery(this).find('.user_widget_last_purchase_item_group_li').each(function() {
jQuery(this).slideToggle('slow');
});
});
} else {
var child = elem.find('.user_widget_last_purchase_item_group_li'); var childLength = child.length; var i = 0; child.each(function() {
if(i == (childLength-1)) {
jQuery(this).slideToggle('slow',function() {
elem.slideToggle('slow');
});
} else {
jQuery(this).slideToggle('slow');
} i++;
});
} return false;
});
BUG => jQuery(this).find('.user_widget_last_purchase_item_group_li') result errorType unexpected_eos sorry little speak english :{
Change History (3)
comment:1 Changed 11 years ago by
Component: | unfiled → selector |
---|---|
Owner: | set to [email protected]… |
Status: | new → pending |
comment:2 Changed 11 years ago by
Sorry, yesterday do not work in Chrome, but today work ... i dont understand it :{
thank you for your response
comment:3 Changed 11 years ago by
Priority: | undecided → low |
---|---|
Resolution: | → invalid |
Status: | pending → closed |
Closing per OP's latest comment.
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.