- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
7 Posted Topics
Is the form below a valid method of changing the id of an XHTML element, specifically the one actually being referenced? It does not seem to work for me. [CODE]document.getElementById("Original_Name").setAttribute("id", "New_name");[/CODE] | |
Re: It is difficult to understand the grammar. There are mouse events you can use, such as: 1. mousedown, user depresses the mouse button 2. mouseup, user releases the mouse button 3. click, one mousedown and one mouseup You can do some js on these events. | |
Re: "^[8,9]{1}[0-9]{9}$" That should work, according to [URL="http://www.gskinner.com/RegExr/"]http://www.gskinner.com/RegExr/[/URL] it does. | |
Does anyone know why these event codes run twice? E.g. I am using a cookie to keep track of [Ctrl] + [Shift] + [F] by incrementing a variable once everytime it is used. However the code for it runs twice and thus the variable is never odd as it always … | |
Using the [URL="http://www.datejs.com/"]date.js[/URL] library, I created a function to get someones age when supplied a birthdate and the date at which you require the age. What do ye think? (I have checked that the second Date is after the first date in the function that calls this one). [CODE] /** … | |
Using IE 7 (and Opera), by selecting the select field below, and using the keyboard char "M" to scroll through the options, it seems to select options in a random order. (Not alphabetically I think). Some options even get selected two times before another gets selected once. Eventually, it will … | |
Can someone explain how the following js syntax works? Is this a function? Why is the syntax like this? How does it work (accessed)? [CODE] SomeName(function() { otherFunction(); var form = document.forms.passengerInformation; toggleCreateProfileFields(); SomeName("#createUserProfileCheckbox").click(function() { toggleCreateProfileFields(); }); }); [/CODE] |
The End.