hey folks,
i am fairly new to JS for which i am working jQuery but that is for later.right now i am not getting my table printed out when i put input type=“text”.
here is my code
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript">
document.write("<table border=2><tr><td>First Name</td><td><input type="text" /></td></tr></table>")
</script>
</body>
</html>
moreover i m writing this code to later call in a dialog box. using jQuery. but for now why isn’t my code being printed with input type. do i have escape “” inside “” like in php? can i make more hierarchy type html in JS, i see when i put the td in next line the code doesn’t execute. i guess white spaces have some significance in JS?