getelementbyid
create array of <li>s in a specific div using javascript
I\'m trying to create an array of <li> that are in a div. So I have var arr = document.getElementById(\'mainNav\').getElementsByTa开发者_开发问答gName(\'li\');[详细]
2022-12-19 19:21 分类:问答Firefox XUL toolbar problem with javascript getElementById
I\'m writing my first Firefox XUL toolbar, and am getting a strange behavior - in order to debug my code, I call the same js function from both the firefox toolbar and from a button on a very simple H[详细]
2022-12-17 08:18 分类:问答Updating Javascript
I\'m trying to create an updating clock in Javascript. Everything is working correctly as I step through the debugger, except that it\'s not ac开发者_运维知识库tually updating the span. Any ideas why?[详细]
2022-12-15 18:07 分类:问答Hideable Comments box
I have a time tracking sheet application. In this I will display dates in a week on X axis (on top) and Tasks on Y-axis (downwards). As shown below, I will give a @ icon after every text box for enter[详细]
2022-12-15 11:38 分类:问答How to getElementByClass instead of GetElementById with JavaScript?
I\'m trying to toggle the visibility of certain DIV elements on a website depending on the class of each DIV. I\'m using a basic JavaScript snippet to toggle them. The problem is that the script only[详细]
2022-12-14 22:23 分类:问答Javascript Div remote server cross domain populating
i\'d like to put in html pages around a javascri开发者_开发百科pt that call a remote javascript file in my server, elaborate datas by give content back to the html page where the javascript will popul[详细]
2022-12-12 21:38 分类:问答JavaScript getElementByID() not working [duplicate]
This question already has answers here: Why does jQuery or a DOM method such as getElementById not find the element?[详细]
2022-12-12 20:46 分类:问答Why does jQuery 1.3.2 not find an existing control by ID - what am I doing wrong?
I have a complex html-Form and am using jQ for some of the work there. And spent the best part of this afternoon trying to understand a problem which I was able to trace back to the point where jQuery[详细]
2022-12-11 17:26 分类:问答calling a variable inside html
I am trying to make a script that when you type in a hex value and press submit itchanges the text color to the color inputted.[详细]
2022-12-11 09:52 分类:问答What is the most effective way to create a reference to this HTML element using plain JavaScript?
If I have the following HTML: <div id=\"container\"> <iframe></iframe> </div> What is the most effective way (mainly in terms of performance) to create a reference to the &l[详细]
2022-12-11 06:41 分类:问答