?
Solved

New to JQuery: popup

Posted on 2011-10-08
2
Medium Priority
?
212 Views
Last Modified: 2012-05-12
I've been googling for a JQuery example. I have an aspx page. I have a link on it. When user clicks it, i want to popup a JQuery popup. On it, i want (for now) to have a dropdown of states. I have list of states in the database...read from database and bind to it...

I can do this with Telerik control but i want to use JQuery. I think I need AJax to read from database. But not sure.
Anyone with an example?
0
Comment
Question by:Camillia
  • 2
2 Comments
 
LVL 12

Accepted Solution

by:
Amick earned 2000 total points
ID: 36938550
Look at the jquery example at the bottom of this page:
http://www.billsternberger.net/tag/dynamically-populate-dropdownlist/

For states, though, it seems as if it would be more efficient to simply populate the list on load.
0
 
LVL 12

Expert Comment

by:Amick
ID: 36938554
To avoid typing (if you recognize the value of populating on load) :
http://www.billsternberger.net/html/state-dropdown-list/ provides a list in the form
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>

Open in new window

and so on for the United States of America.
0

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

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Suggested Courses
Course of the Month17 days, 6 hours left to enroll

864 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