I have an array ["A", "B", "C"] and I want to show the elements of the array in a text box but without comma. They will appear in the text box as like: ABC
function addtoFormula(){
var a = ["A", "B", "C"];
$.each([a], function( index, value ) {
var putvalue = value;
$("#formula").val(putvalue);
});
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<input type="text" name="formula" id="formula">
<button onclick="addtoFormula();">Add</button>