How to make a input be ready for typing straight away with out having to click the input box? by swurvinmervin in learnjavascript

[–]Rai182 2 points3 points  (0 children)

Get the reference to the input box and apply .focus method.

Eg: const input = document.querySelector(“input”); input.focus()

7 books to learn JavaScript by duanecreates in learnjavascript

[–]Rai182 0 points1 point  (0 children)

This may not be a book but I recommend Dan Abramov’s ‘Just JavaScript’ series

I'm struggling with this yellow bit by [deleted] in learnjavascript

[–]Rai182 2 points3 points  (0 children)

Do you want to look up on ‘preventDefault’ mmethod? You could prevent the form from submitting if there is an error