I am aware with jQuery append method to extend something after text.
I was actually thinking about extending some special characters dynamically.
I want-
I have two text boxes with display:inline. One is for Basic phone Number and another is for Mobile number. I am getting all this information as summary after submitting with button.
I wanted to separate these two numbers with , separator.
One way I could do this, By separating these with static method.
<input type="number" data-id="#Basic_phone#" /> , <input type="number" data-id="#Mobile_phone"/>
It looks like- 1234569119,9119119119
But it looks bad when there is no value in database for any one input box. Then I need to type numbers, But sometimes I don't have value for one of input boxes.
then I get only (space),(space) or 1234569119,(space) or (space),1234569119.
I want to get comma only when both numbers are there. Sorry I don't have any idea for doing it.