Quote:
click on text box i want to see multiline
To achieve above requirement you need to capture focus event of textbox.
Quote:
i have a asp text box and i want
to convert this textbox to multiline by javascript code
You can not convert asp.net server side textbox to multiline using client side scritp.
But you can renove that textbox and add new textarea using client side script.
I will show you using Jquery. You can easly do the same in javascript to.
<script type="text/jscript" language="jscript">
$(function () {
$('#TextBox1').focus(function () {
var newTextArea = document.createElement('TextArea');
document.body.appendChild(newTextArea);
$('#TextBox1').remove();
})
});
</script>
Where my asp.net textbox is.
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>