Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i can disable and enable textbox, but how to do fro dropdownlist please help me.
JavaScript
$("input[type=text][id*=txtAmount]").attr("disabled", true);
Posted
Updated 6-May-14 6:20am
v2

Just use the ID of DropDownList directly.
JavaScript
$("#ddlDropDownListID").attr("disabled", true);
 
Share this answer
 
Comments
Member 10454499 6-May-14 13:50pm    
Sorry Tadit, its not working
Sorry, I missed the Repeater part of your query. Try like below...

$("select[id*=ddlDropDownListID]").attr("disabled", true);
You can just use .hide in jQuery for doing this.
$("#IdOfdropdown").hide();

Check out this fiddle
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900