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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 20, 2012, 10:49 PM EDT
ChangeSelect to Select
Sample jQuery
$('[id$="MyDropDown"]').blur(function() {
$(this).attr('value','0');
});
nallyaRank #8,588 · 219 reputationPosted Sep 20, 2012, 10:52 PM EDT
Dorababu MekaRank #457 · 5.5K reputationPosted Sep 21, 2012, 12:28 AM EDT
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");
}