This is pretty easiery way for you to enable and disable controls in sharepoint lists pages or where ever you need it.
Thats it .. its all set
The id will look something like this
so your code is gonna be this way
Open up the page in sharepoint designer and find for the code below