Text box showing  

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anilraghuvanshi
    New Member
    • Jul 2007
    • 4

    Text box showing  

    Hi All,

    We are displaying some text in text box coming from database. We set this value in text box using one Js function. problem is that the string is like "My Name" having <space> beteen them so this <space> is showing as &nbsp; in text box. How to solve this problem?
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Your JS text translate function probably makes the text string safe, so the blank is translated into '&amp;nbsp;'. You'll have to replace that string with a blank char with the string.replace( ) function.

    Ronald

    Comment

    Working...