?
Solved

Option form JavaScript issue

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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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 the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

777 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