Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using ajax toolkit controls on my asp page.
I want to diable it usimg javascript, not using code behind. I also dont want to disable textboxes on which i applied ajax extenders. please provide me the solution.
If it is possible in jquey then also it is accepted.
Posted

Try like this

in jquery:
$('[id$="txtidName"]').attr("disabled", "disabled");



in javascript:
document.getElementById("<%=txtidName.ClientID%>").disabled=true
 
Share this answer
 
v2
Try this:
JavaScript
function disableNumUpDown()
{
    $find("myNumUpDown").get_element().disabled = true;     // Disable TextBox
}


or
JavaScript
var myNumUpDown = $find("<%= myNumUpDown.ClientID %>");   
myNumUpDown.disable(); 


--Amit
 
Share this answer
 

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