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.
1
Setting/changing HTML and CSS values with Javascript
Post Body
Firstly, values that can be set in HTML for instance <input type="text" readonly>, should they be set in javascript instead, referring to 'readonly'.
Secondly, values in CSS which are changed by javascript, should I change the style such as element.style.backgroundColor = "red";, or should I change the elements class instead, or something else?
Sorry if this is unclear, thanks in advance.
Author
Account Strength
90%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
776
Link Karma
53
Comment Karma
723
Profile updated: 18 hours ago
Posts updated: 9 months ago
Subreddit
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
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnjavasc...