- 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
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:
i have the variable $hello="this is test" and i would like to do this when someone click the link "LINK" to show down of it "this is test when click once i want to look like this LINK this is test and when click again to look like this LINK … |
|
Re:
Hi all,I am trying for validation using regular expression for Indian mobile number. Simply i have tried for"^[8,9]{1}[0-9]{9}$" and some others also but it is not working. I want regular expression for: 10 digit mobile number starts with 8 or 9 |
|
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] |