[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Option form JavaScript issue

Posted on 2010-09-15
1
Medium Priority
?
347 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 1000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

650 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