jquery - if else if?
Posted
by YesThatsRight
on Stack Overflow
See other posts from Stack Overflow
or by YesThatsRight
Published on 2010-05-25T13:35:32Z
Indexed on
2010/05/25
13:41 UTC
Read the original article
Hit count: 220
I've been trying to figure out the syntax for an if / else if statement in jquery, but googling gives me mixed messages... There are some sites that say I need a plugin, and others that suggest that it's already possible. Trying those suggestions give me jquery errors in the jquery.js file, so I'm wondering, do I need a plugin or not? Does someone have an example of an
if () {
//do something
}
else if () {
//do something else
}
else {
//do something
}
in jquery?
© Stack Overflow or respective owner