Fmdpa Posted July 21, 2010 Share Posted July 21, 2010 One of the things I am doing now is trying to create a custom tool tip. Basically, what I want to do is to extract the value of the title attribute, place that text in the custom tooltip and change the default tooltip's visibility to hidden. Using JS, how do I select things like attributes and objects such as the default tooltip? Link to comment Share on other sites More sharing options...
justsomeguy Posted July 21, 2010 Share Posted July 21, 2010 You can use one of the document methods like document.getElementsByName or one of the properties of the document object to go through the child elements. Check the Javascript and DOM references to see what's available in the document object. For each element, you can use its getAttribute method to get any attribute you want. Link to comment Share on other sites More sharing options...
Fmdpa Posted July 22, 2010 Author Share Posted July 22, 2010 I'm not very familiar with DOM. But it looks very useful, even essential, to programming. I'll check out the w3schools references. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.