img class could be more meaningful as that’s not an image so could be cross or icon or something more meaningful
JS need some optimisation as it’s targeting body, it should target form and some more JS logics can be improved
I know you are just sharing the idea, idea is good. Think of beginners who are just gonna copy paste your code.
Thanks I take care of that from next post
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
img class could be more meaningful as that’s not an image so could be cross or icon or something more meaningful
JS need some optimisation as it’s targeting body, it should target form and some more JS logics can be improved
I know you are just sharing the idea, idea is good. Think of beginners who are just gonna copy paste your code.
Thanks I take care of that from next post