This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
7
looking for some help with html form and javascript
Post Body
So I am making a form and I want the placeholder to by dynamic by year I have the script working however I can't figure out how to change it in the html
<html>
<body>
Enter the Year and Term of the Schedule: <br><br><input id="year" type="text" placeholder= "year" name="parm_LB_Term1.Year">
<select style="margin-left: 10px;" name="parm_LB_Term2.Term"><option name="" value="">Choose a Term</option>
<option name="parm_LB_Term2.Term" value="03">Spring</option>
<option name="parm_LB_Term2.Term" value="05">Summer</option>
<option name="parm_LB_Term2.Term" value="07">Fall</option>
</select>
<br>
<input style="margin-top: 10px;" type="submit" value="Get Schedule">
</form>
<!-- JS before /body -->
<script>
document.getElementByplaceholder("year").innerHTML = new Date().getFullYear();
</script>
</body>
</html>
Any help would be much appreciated.
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 7 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/html5/comme...