jquery - if else if?
- by YesThatsRight
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?