i used .val() function in jquery to post value from textbox. when i alert i can see whole string .but when putting on a textbox only data before space is coming.anybody know this issue,please help am sharing my code here
$('#add_input').click(function(){
var item = $('input[id="itemname"]').val();
i++;
$('#dynamic1').append('<tr id="row'+i+'">\n\
<><td> <input type="text" name="serial_id" id="serial" value='+i+' ></td>\n\
<td><input type="text" name="item1[]" value='+item+'></td></tr>');
in item texbox only getting first part of input value.