answersLogoWhite

0

ID is unique and there can be no duplicate in concerned file atleast. When you specify the document.getElementById command then that means javascript only calls that element. Say suppose you want to call a radiobox of name gender where the name gender is associated with two form elements. Here you specify two different ID's and call them through javascript

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the use of id in javascript?

ID in JavaScript can be used to refer a control. For example getElementbyID("#name-of-id").


What is a node id?

It is the value of the attribute id of a node. It is used when manipulating the DOM and can be accessed by using the function getElementById() of the document object in JavaScript


What is the document Getelementbyid used for?

The document Getelementbyid is used for Java programming. Java programming is a computer language that allows people to build applications for creative uses everyday.


How do you use javascript in aspnet?

Ajax, I believe uses JavaScript + ASP.


Why does javascript uses prototype instead of classes for inheritance?

Oh,I think you should watch Doglus clockford about in javascript. He said that Javascript isMisunderstood Programming Language.


What are the disadvantages of disabling JavaScript in your browser?

The disadvantage of disabling JavaScript is that when you access a website that uses JavaScript (which a lot of websites do) they may not look or work properly or may ask you to enable it.


Who is written by java script?

This question doesn't make any sense. Do you mean who uses JavaScript? Or who created it? Or what JavaScript is useful for writing?


Which machine actually execute the javascript?

JavaScript is executed by JavaScript engines, which are embedded in web browsers and other environments. In browsers like Chrome, the V8 engine executes JavaScript, while Firefox uses SpiderMonkey, and Safari utilizes JavaScriptCore. Additionally, environments like Node.js also have their own JavaScript engines, allowing JavaScript to run outside of web browsers.


How do you save javascript on Roblox?

It is not possible to save and execute Javascript code on Roblox. You can save Javascript code as plain text in script objects, but there is no way to execute the code. Roblox uses a scripting language called LUA in-game which is somewhat similar to JavaScript, but it is not identicle. You can learn about LUA syntax on the Roblox wiki.


What are the uses of java script in web technology?

These are the following important uses of JavaScript.Used to send & receive asynchronous data from server by AJAXJSON (javascript object notation) is used as a web serviceJquery is used as a alternative to flash technologies for animationClient-Side validation is largely performed through javascript validationThere are other uses also to Java Script


What is javascript cokies?

A "Cookie" is a small file that is sent to your computer by websites. Most of the time, they are harmless. They are often used for remembering log-in credentials (Username and passwords), remembering to keep you logged into an account, any many other uses. A "JavaScript" cookie is a cookie sent by the JavaScript language.


Can you hide and reveal text e.g YouTube comments without the use of javascript I wanted to try it on Myspace but it disables javascript.?

Very unlikely. See, Javascript is used to change the className attribute of the text node. When the className has changed, the node uses the properties that are set with CSS. This means you can keep a text invisible with CSS only, but you'll always need Javascript to switch classes.