# Right align doublebox value

526 2 2 9

I need to align the doublebox value as right aligned. Because, generally numerical values should be right aligned as default.
It should accept the user input from the right hand side.

Is it possible to make the doublebox behave like that?

Thanks.

delete retag edit

## 2 Replies

YamilBracho
1722 2

Just <doublebox id ="uno" maxlength="10" format="#,##0.00" style="text-align:right"/>

526 2 2 9

Thanks YamilBracho :)

The alignment property works awesome.
But, the format attribute is not working as expected.

I have specified the format as mentioned below:

<doublebox format="##,##,##,##,##0.00" style="text-align:right" width="95%" />

But, it actually formats as shown below, when we enter the value (123456789) :

123,456,789.00

How can we force the comma separator possition exactly to the specified format?

Thanks.

[hide preview]