Get an Element by Name attribute using JavaScript

JavaScript get elemtnt by name example; In this tutorial you will learn how to Get an Element by Name attribute using JavaScript. The getElementsByName() method returns a collection of elements with a specified name. The getElementsByName() method returns a collection of all elements in the document with the specified name (the value of the name attribute), as … Read more

Check if Data Attribute Exists using Javascript

In this tutorial, you will learn how to check if a data attribute exists in javascript. Using javascript we can do anything in dom element. Getting the object attribute or a div, span, a, button etc any element attribute we use the javascript hasAttribute() method. If the attribute is find then this methods return true … Read more