javascript doubt
-
function codename() { if(document.formname.checkboxname.checked) { document.formname.textname.disabled=false; } else { document.formname.textname.disabled=true; } }
hi friens this is my javascript code with checkbox,button here i select checkbox the button is enabled and deselect it is disabled(it is working fine) now i am using html page (it is not working) i gave runat=server in html..(it is also not working) can u help me
-
function codename() { if(document.formname.checkboxname.checked) { document.formname.textname.disabled=false; } else { document.formname.textname.disabled=true; } }
hi friens this is my javascript code with checkbox,button here i select checkbox the button is enabled and deselect it is disabled(it is working fine) now i am using html page (it is not working) i gave runat=server in html..(it is also not working) can u help me
if you are using runat=server for any control then defin the tag like in javascript method use like following document.getElementById("whateverID").checked
Regards, Sylvester G sylvester_g_m@yahoo.com
-
function codename() { if(document.formname.checkboxname.checked) { document.formname.textname.disabled=false; } else { document.formname.textname.disabled=true; } }
hi friens this is my javascript code with checkbox,button here i select checkbox the button is enabled and deselect it is disabled(it is working fine) now i am using html page (it is not working) i gave runat=server in html..(it is also not working) can u help me
-
If you use runat=server then the name will be changed better see in viewsource or/use document.getElementById(CustomerInfo").Checked or try this also document.forms[0]["checkbox1"].checked
hi it is not working if possible give the code.plz
-
hi it is not working if possible give the code.plz
-
function codename() { if(document.formname.checkboxname.checked) { document.formname.textname.disabled=false; } else { document.formname.textname.disabled=true; } }
hi friens this is my javascript code with checkbox,button here i select checkbox the button is enabled and deselect it is disabled(it is working fine) now i am using html page (it is not working) i gave runat=server in html..(it is also not working) can u help me
-
function codename() { if(document.formname.checkboxname.checked) { document.formname.textname.disabled=false; } else { document.formname.textname.disabled=true; } }
hi friens this is my javascript code with checkbox,button here i select checkbox the button is enabled and deselect it is disabled(it is working fine) now i am using html page (it is not working) i gave runat=server in html..(it is also not working) can u help me
If you use runat="server" you need to create javascript variables to hold the client side Id, which is represented by the ClientID property, and is not the Id you set on the server side.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
If you use runat="server" you need to create javascript variables to hold the client side Id, which is represented by the ClientID property, and is not the Id you set on the server side.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Hi Christian Graus. So How can we get CientID of any server control?
Bajrang Singh Using .net 2.0 (VS2005)