Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8917659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:32:44+00:00 2026-06-15T05:32:44+00:00

I am trying to convert the characters in the textbox to upper case. But

  • 0

I am trying to convert the characters in the textbox to upper case.

But this seems to affect my cursor position.

JS fiddle below:

$(this).val($(this).val().toUpperCase());

http://jsfiddle.net/ZdRnZ/

If I type on a blank textbox everything is fine… but If i try to type inbetween the text the cursor immediately goes to the end of the word.

How can I prevent it from happening, my cursor should be where I stopped typing, not at the end of the text.

Works fine in Firefox, IE screws it up. I need it working on IE

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:32:45+00:00Added an answer on June 15, 2026 at 5:32 am

    This can also be accomplished via CSS:

    <input style="text-transform: uppercase" type='text'></input>
    

    Put this in your HTML page and the textbox will force all text input to be
    uppercase. There are additional modifiers:

    lowercase, capitalize, none, inherit

    Of course, this can be browser-dependent, but seems to be supported in most
    browsers.

    I have updated your sample adding the text-transform style and switching the jquery event bind from keyup to change :
    http://jsfiddle.net/ZdRnZ/6/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert Korean characters into unicode/html entities but not having any luck.
I am trying to use this function to convert danish characters to utf private
I am trying to convert characters like: ë, ä, ï, ö, etc. To normal
Trying to convert output from a rest_client GET to the characters that are represented
I am trying to convert a string that is 8 characters long of hex
Trying to convert the following but am having difficulty. Can anyone see where I'm
Trying to convert this c code into MIPS and run it in SPIM. int
I'm trying to convert characters like < and > into &lt; and &gt; etc.
I am trying to convert some characters (\t, \r, \n, \r\n) to XML compatible
I'm trying to convert an existing SVN repository to GIT using git-svn clone but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.