String concatenation is dangerous without input validation.
Just use .val() to set the input value, and ideally use the jQuery constructor rather than .html() to create it:
var FLV = $("#random-input-box").val(); $('#FNC').empty(); $('<input id="random-input-box" style="width: 99px;" disabled="disabled" />') .val(FLV).appendTo('#FNC');
source share