Solved

Option form JavaScript issue

Posted on 2010-09-15
1
345 Views
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,
				height:455
			};
			VZT.ModalHandler.show(args);
	}

<select id=selURL class="fl" style="padding:6px 8px;height:32px;margin-right:10px;" onchange="VZT.RegionalStoryHandler.show();">
  <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>
</select>

<a href="javascript:VZT.RegionalStoryHandler.show();" class="button"><span class="grey"><span><span>Ok</span></span></span></a>

Open in new window

0
Comment
Question by:yando18
[X]
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

by:
Michel Plungjan earned 250 total points
ID: 33688904

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

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

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

687 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