Within a text entry box for a matrix table question, is there a way to right-align the text within the text entry box using javascript?
I've seen a post about right aligning the box itself, but not one about right aligning the text within the box. Many thanks!
Solved
How to Right-Align Text Entry Text with javascript?
Best answer by TomG
Add the following to the addOnload function:
```
jQuery("#"+this.questionId+" input[type=text]").css("text-align", "right");
```
View original```
jQuery("#"+this.questionId+" input[type=text]").css("text-align", "right");
```
Leave a Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.