Hi,
I am using a textbox & dropdownlist in a user control. I want that when the user clicks the textbox, the dropdownlist should get invisible, i wrote the following code in the page load event in .ascx.
vb file:
If Not (Page.IsPostBack) Then
textbox1.Attributes.Add("onclick", "javascript
:letsgetinvisible();")
End If
How to write code for making the dropdownlist invisible in javascript in the user control file(.ascx)?
The following code i tried, doesn't works"
<script language=javascript >
function letsgetinvisible()
{
dropdownlist1.visible=false
}
</script>
Will someone plz. guide me? Am i trying it the correct way, or there is some other way to do it.
Regards
Gagan!