I have a set of html text fields that enter input and when the user clicks the add button, uses javascript to enter text and format the string placed in the HTML select box. The first of these boxes must contain 2 characters, but can also take a space. Formatted lines will look like this:
01-ABC-O
02-def-i
However, I need a way to display empty numbers that line up with other elements
-GHI-O
This type of record will display fine when javascript adds this parameter, but when the page reloads and the selection is populated with values ââ(I use Java, jsp and struts 1.1 if this helps), it gets the same values ââ(spaces remain), but the spaces are larger don't appear in the select control (I was looking at the source of the page and it looks identical to when javascript adds this option). I tried replacing spaces for
but it just prints the string "& nbsp" instead of space. I also tried using the "pre" html blocks and the css white-space property and did not work.
Let me know if further clarification is required.
source share