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 6697465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:27:47+00:00 2026-05-26T06:27:47+00:00

On Facebook, for example, if you have chosen the Arabic language for your keyboard,

  • 0

On Facebook, for example, if you have chosen the Arabic language for your keyboard, the textbox automatically gets RTL direction.

How can I implement this on my web application? I don’t know the method or property used.

  • 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-05-26T06:27:48+00:00Added an answer on May 26, 2026 at 6:27 am

    You can use the CSS direction property to achieve this:

    input{
      direction: rtl;
    }
    

    Update

    To change the direction of the text dynamically based on the user input you can check the first character of input to see if it meets a given criteria, in this case a regular expression.

    $('input').keyup(function(){
        $this = $(this);
        if($this.val().length == 1)
        {
            var x =  new RegExp("[\x00-\x80]+"); // is ascii
    
            //alert(x.test($this.val()));
    
            var isAscii = x.test($this.val());
    
            if(isAscii)
            {
                $this.css("direction", "ltr");
            }
            else
            {
                $this.css("direction", "rtl");
            }
        }
    
    });
    

    This is a basic example that uses ltr direction for ascii text and rtl for everything else.

    Here’s a working example.

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

Sidebar

Related Questions

i have to create a program to login on facebook using example http://code.google.com/p/facebook-java-api/wiki/Examples but
Hy, how can i make canonical URLs (For Facebook Parsing) with mod_rewrite. Example: I
So I have been trying to run the Facebook Connect example for PhoneGap /
For example suppose you have 3 notifications in Facebook. When you open the website,
I have downloaded the Facebook API example and have a test run on. FacebookMobile.login(handleLogin,
How can we create a Facebook application on app engine ? Do you have
I'm using facebook requests in my app. Lets say for example i have a
I have the Facebook SDK for Android working in my app. I can't seem
I have implemented a Facebook connect example with my Codeigniter website. I am trying
Say I have the website http://www.example.org and the corresponding Facebook page at http://www.facebook.com/example .

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.