Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

Focus is not displayed when text:align=right

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.
0
Rocking
Asked:
Rocking
1 Solution
 
Sathish David Kumar NCommented:
also set the align in the jquery return
0
 
khan_webguruCommented:
You can do like this

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

Open in new window


ref: http://api.jquery.com/focus/

example:http://stackoverflow.com/questions/1433742/jquery-set-focus-to-field-in-div
0
 
RockingAuthor Commented:
.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now