Use the s.length property.
if(s.length == 0) {
...
}
[edit] size() deprecated in jquery 1.8
http://api.jquery.com/size/
Use the s.length property.
if(s.length == 0) {
...
}
[edit] size() deprecated in jquery 1.8
http://api.jquery.com/size/