国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁javascripttext_inputjQuery Form - 如何將字符串追加到input type =“text”字段中的字符串

jQuery Form - 如何將字符串追加到input type =“text”字段中的字符串

我們想知道如何將字符串追加到input type =“text”字段中的字符串。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.10.1.js'></script>
<script type='text/javascript'>
$(window).load(function(){
    $("#button").click(function(){
            var value = $("#text").val();
            value += ".html";
            $("#text").val(value);
            var fileName = $("#text").val();
            document.writeln(fileName);
    });
});
</script>
</head>
<body>
  <input type="text" name="text" id="text">
  <input type="button" id="button" value="Click">
</body>
</html>