So I added this css to my input box
text-transform: uppercase
So that it would automatically uppercase all my inputs. But my problem is when using Internet Explorer, it also automatically converts the placeholder in my input box as uppercase. I do not experience this in google chrome,firefox or safari. How can I avoid it not too automatically convert in IE9?
try:
/* Internet Explorer 10+ */
.form-control:-ms-input-placeholder {
text-transform:none;
}
try Like this
<asp:TextBox ID="TextBox1" AutoPostBack="true" runat="server"
ontextchanged="TextBox1_TextChanged"></asp:TextBox>
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
TextBox1.Text = TextBox1.Text.ToUpper();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.