Jump to content

looking for ID of element


dennismonsewicz

Recommended Posts

var someElement = document.getElementById('id_to_look_for');

if (someElement) {
alert('element found');
} else {
alert('element not found');
}

 

Yes, that isn't a mooway to do it, but it's basic javascript. I'm sure the mootools docs have their own method of doing this documented, if they have implemented something for this. I'm not a mooguy, so I couldn't tell ya.

 

Hope that helps...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.