answersLogoWhite

0


Best Answer
User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do I put a dropdown list inside a prompt box using Javascript?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you define tab dropdown on java script?

It would be better if you do tabs with dropdown using CSS. Javascript can be easily disabled.


Is it possible to call a stored procedure from java script function and populate an aspnet dropdown list HTML control using the value returned by the SP?

No, a stored procedure can not be called from Javascript. A dropdown list however can be populated using a stored procedure.


Is it possible to access browser cookies from javascript?

Yes, it is possible to access browser cookies from JavaScript. It can be done using cookies keyword inside it.


Can you use JavaScript within the form tag?

You can call an external javascript file or javascript code located inside the head or body tag from a form using event handlers. I am not sure if you can or cannot use javascript code inside form tags but am sure that it is not a good programming practise to put code of two different language (js & html) together


How do you add a login prompt to my page before the page even loads?

The effect you're looking for requires the use of HTTPAuth, not JavaScript. You can accomplish this using a password-protected directory, as well.


When writing prompt box by using javascript the paragraph on the body tag is replaced by the value of the prompt how to solve this?

The prompt dialogue box is used to get user feedback and change the value accordingly in the paragraph. Try and use some other popup box like confirm or alert if you do not wish to replace the value in the body paragraph


How do you check length of password using javascript?

Use the length property of string in javascript.


What tags will you use to tell the Web browser that you are using JavaScript?

Browsers that support JavaScript will treat anything inside elements as code:function myf1 () { document.write("Hello, world"); }You may also include external .js source files using this element: will import the source from "scripts.js".


Can you get ipaddress by using javascript?

No, use asp


How do you show the text box output in the browser using Ajax code?

You can directly do that in the JavaScript. Just get the value of the input type in JavaScript using id and show it using .innerHTML.


What are the benefits of using JavaScript for forms?

JavaScript can help with dynamic retrieval of form data using AJAX and also the data can be checked and validated before sending it to the server. Apart from that you could add some animation and change views using javascript and jquery.


How can you close the iframe in calling page in php and javascript?

Using JavaScript, you can accomplish this by deleting the iframe node from the DOM.