views:

34

answers:

1

How would I go about inserting line breaks in the value of hidden fields?

For ex. this is how my hidden field looks like:

 <input type="hidden" name="dahidden" value="<%=da.getFname() %> <%=da.getLname() %> <%=da.getEmail() %> <%=da.getPhone() %> <%=da.getExt() %>">

I need to insert line breaks after da.getLname() and da.getEmail().

How would I go about doing this?

+2  A: 

Just insert the line breaks directly. They are permitted within attributes.

 <input type="hidden" name="dahidden" value="<%=da.getFname() %> <%=da.getLname() %>

 <%=da.getEmail() %> <%=da.getPhone() %> <%=da.getExt() %>">
Oded
So, I tried this <input type="hidden" name="dahidden" value="<%=da.getFname() %> <%=da.getLname() %> <br> <%=da.getEmail() %> <br> <%=da.getPhone() %> <%=da.getExt() %>"> But with this, I'm getting something like ABC <br> labc.org <br> 123-456-7888 And not getting the actual line breaks
Pritish
@Pritish - What _exactly_ are you trying to do? Not _how_, but the _end result_?
Oded