<div id="example"></div>
<script type="text/javascript">
jah = "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
jah+= "<p>Browser Name: " + navigator.appName + "</p>";
jah+= "<p>Browser Version: " + navigator.appVersion + "</p>";
jah+= "<p>Cookies Enabled: " + navigator.cookieEnabled + "</p>";
jah+= "<p>Platform: " + navigator.platform + "</p>";
jah+= "<p>User-agent header: " + navigator.userAgent + "</p>";
document.getElementById("example").innerHTML=jah;
</script>
Tôi đang sử dụng mã ở trên để biên dịch một số thông tin trình duyệt mà tôi cần thu thập từ biểu mẫu. Làm thế nào tôi có thể nhận được thông tin đó được chuyển đến một đầu vào hoặc Textarea?Jquery điền dữ liệu vào hoặc văn bản
Cảm ơn trước!
Tôi hơi bối rối vì bạn yêu cầu jQuery trong tiêu đề, nhưng sau đó ví dụ của bạn là tất cả về javascript thuần túy. – Moni