Writing to an input field
Hi everyone,
I am trying to clear an input field, but it doesn't seem to working? This is what I am doing:
<!DOCTYPE html>
<html>
<body>
<p> Test 1: <input id="Test1" name="Test1" type="text" size="3" maxlength="3" value="3"></p>
</form>
<p id="demo"></p>
<script>
$('id#"Test1").value(" ");
}
</script>
</body>
</html>
I also tried this: $('id#'Test1").text(" "); it didn't work.