How to make an anchor tag to do nothing?

How to make an anchor tag to do nothing?

HTML | Make an anchor tag to do nothing | href="javascript:void(0);" To prevent reloading page when a link clicked is something like preventing the default behavior of an element. It can be achieved by providing "javascript:void(0)"…
Input type number maxlength not working

Input type number maxlength not working

HTML | Input type number maxlength not working The maxlength attribute of an input field is used to limit the length entered in the input field. but it works only if the type of input…
Remove id attribute from an element using jquery

Remove id attribute from an element using jquery

Jquery | Remove id attribute from an element The removeAttr() function from jquery is used to removes one or more attributes from the selected elements. $("div").removeAttr("id");     Here seen an example with complete code…