Focus is not displayed when text:align=right

Posted on 2011-04-18
Last Modified: 2012-05-11
Focus is not displayed in the text box when i do text-align: right.
However when there is some contents in the text box,those are get selected during tab navigation.
But when there are no contents in the text box,focus is displayed during tab navigation.
I am using Jquery 1.4.2
How do i show the focus.
Question by:Rocking
    LVL 20

    Expert Comment

    by:Sathish David Kumar N
    also set the align in the jquery return
    LVL 10

    Accepted Solution

    You can do like this

    $('#target').focus(function() {
      alert('Handler for .focus() called.');

    Open in new window



    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now