but when i go from 1st ddl to 2nd ddl the selected value in 1st ddl remains same but i want it come on select value how can i do that
also after page refresh all ddl value must come on select.
Thank You
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dorababu MekaPosted Sep 21, 2012, 4:28 AM
Supoose if you selected dropdown values is Select
you can check as follows
if(ddl.SelectedItems.Text!="Select")
{
// Bind your remaining dropdowns
}
else
{
ddl1.Items.Insert(0,"Select");
}
nallyaPosted Sep 21, 2012, 2:52 AM
Sukesh MarlaPosted Sep 21, 2012, 2:49 AM
ChangeSelect to Select
Sample jQuery
$('[id$="MyDropDown"]').blur(function() {
$(this).attr('value','0');
});