tags:

views:

72

answers:

2

I have two phone numbers and would like to have the Home Phone on one line and Work phone on the other. This is what I have so far...

$tr.find('.phone').text($('#txtPropHPhone').val()) + '<br />' + $('#txtPropWPhone').val());

The .html is still not working... How do I fix this?

+3  A: 

Use .html() instead of .text()

Jan Jongboom
I have that and still no luck...
What type of element are you selecting with '.phone'? If its an input or form ele, try using val() instead of text()
John Himmelman
A: 

It looks like you have an extra parentheses. Try this...

$tr.find('.phone').html($('#txtPropHPhone').val() + '<br />' + $('#txtPropWPhone').val());
John Himmelman