how to get value?

How to get current selected value of a dropdown which is inside div? divid is divcontent and dropdownid is country

code follows

<form id="frm1">

both dropdowns are ajax-generated based on some conditions.

Thanks in advance


Just use .val() to get the value of any input type element, include <select> elements. Since IDs are unique you can just do this:

var value = $("#country").val();

Need Your Help

Determining if text is english

c# translation

I currently have a lot comments and text in my database that is mainly in English. However if it isn't in English I want to translate it to English.

multiple image upload field

php cakephp file-upload cakephp-2.0

Its pretty simple to add form fields for uploading files etc, but I am after one that I can highlight several files and upload them all in one field.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.