Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Selecting from a dropdown box

Tags: artist select

T.Gowing:

I need to make sure an Artist has been selected, but not sure if i should be using "artist" or "select". I have tried both and it's not working. The code must show an alert if there is no selection.


function validate() {

var select_artist = document.getElementById('artist');
if (artist == "") {
alert("You need to choose an artist");
return false;
}




Select an Artist:






Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Selecting from a dropdown box

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×