Showing posts with label dropdown. Show all posts
Showing posts with label dropdown. Show all posts

Wednesday, October 9, 2013

get selected dropdown value using jquery


$('#ddlSDIDepositSchedule').change(function () {
    alert($("#ddlSDIDepositSchedule").val());
});

http://jsfiddle.net/rahularyansharma/KSwcd/ 

Friday, July 6, 2012

get the dropdown value and text using jquery

we have a drop down an ID, Name Pair.
Example

Rahul has ID of 1
Chand has ID of 2
Parthavi has ID of 3
When I do the followng:
alert($('#Crd').val());
and we select Rahul , we get 1

but in case we want selected text in jquery for a dropdown
then

$('#dropdownId option:selected').text();

ASP.NET Core

 Certainly! Here are 10 advanced .NET Core interview questions covering various topics: 1. **ASP.NET Core Middleware Pipeline**: Explain the...