when i did click text input, i want to change input background color but with javascript.
I know with css.
I want for example.
<form action="" name="abc" method="post">
<input name="abc" id="name" type="text"/>
<input name="yusuf" type="text"/>
<input type="submit"/>
</form>
How can i select element name as name with javascript?
I want similar:
<script>
document.getElementById("name").style = "background-color:red";
</script>
I want to write css code but direct. Shortly how can i reach style="" parameters?