DEV Community

Discussion on: How to create Google's Material Design Text Input Field using CSS and JavaScript?

Collapse
 
keeran_raaj profile image
Raj Kiran Chaudhary

This works pretty good for single input field. But when there are two inputs, then there is a slight problem. On clicking somewhere, the label of second input field comes down. Can you please help??

Collapse
 
keeran_raaj profile image
Raj Kiran Chaudhary

Thank you @murtuzaalisurti . I solved the problem by using 'querySelectorAll'

Collapse
 
murtuzaalisurti profile image
Murtuzaali Surti

⚡🙌