195
rated 0 times
[
199]
[
4]
/ answers: 1 / hits: 166937
/ 13 Years ago, wed, july 13, 2011, 12:00:00
For example if I want to do something if parent element for used element hasn't got ul
tag as next element, how can I achieve this?
I try some combination of .not()
and/or
.is()
with no success.
What's the best method for negate code of a if else
block?
My Code
if ($(this).parent().next().is('ul')){
// code...
}
I want to achieve this
Pseudo Code:
if ($(this).parent().next().is NOT ('ul')) {
//Do this..
}
More From » jquery