yo(selector).exists()
Return true if the selector exists (or was found);
if (yo('#myid').exists()) {
console.log('Exists');
}
Go to index
Return true if the selector exists (or was found);
if (yo('#myid').exists()) {
console.log('Exists');
}
Go to index
From here you can search these documents. Enter your search terms below.
Keys | Action |
---|---|
? | Open this help |
← | Previous page |
→ | Next page |
s | Search |