Option form JavaScript issue

Posted on 2010-09-15
Last Modified: 2012-05-10
Hey all,

I'm having an issue with a select form that calls a modal, based on your selection. I need the first option (Pick a region) to be shown but not selectable. I'm sure its a small fix. It might be helpful for the selection to pop up an alert when clicked. Any help would be great.    
show: function() {
			var value = $("selURL").get("value");
			var args = {
				content: $(value),
				width: 925,

<select id=selURL class="fl" style="padding:6px 8px;height:32px;margin-right:10px;" onchange=";">
  <option disabled="disabled" selected="selected">Pick a region</option>
  <option value="why_settle" >New York</option>
  <option value="why_settle" >Philidelphia</option>
  <option value="why_settle">Pittsburg</option>
  <option value="why_settle" >Tampa Bay</option>

<a href=";" class="button"><span class="grey"><span><span>Ok</span></span></span></a>

Open in new window

Question by:yando18
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 75

Accepted Solution

Michel Plungjan earned 250 total points
ID: 33688904

<select id=selURL class="fl" style="padding:6px 8px;height:32px;margin-right:10px;" onchange=";">
  <option value="" selected="selected">Pick a region</option>

show: function() {
  var value = $("selURL").get("value");
  if (value=="") return;
  var args = {
    content: $(value),
    width: 925,


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question