davidrobin
Freshman
- Joined
- Jun 24, 2003
- Messages
- 41
I have a dynamically created HTMLInputText HTMLControl.
I have some javascript I want to call
The code for creating the HTMLInputText control is this
How do I tell the HTMLInputText control to call the javascrtipt on the onblur event?
I have some javascript I want to call
Code:
<script language="javascript">
<!--
function gohere(){
if (document.getElementById('Text1').value == 'L')
{document.getElementById('Select1').style.display = 'none'}
else
{document.getElementById('Select1').style.display = ''}
}
//-->
</script>
Code:
tbcCell = New TableCell
Dim txtMarkBox As New HtmlInputText
txtMarkBox.ID = "HTMLMark" & i.ToString
txtMarkBox.EnableViewState = True
txtMarkBox.MaxLength = 1
tbcCell.Controls.Add(txtMarkBox)
tbrRow.Cells.Add(tbcCell)
How do I tell the HTMLInputText control to call the javascrtipt on the onblur event?