How to call a bootstrap class into JavaScript using the HTML DOM getElementsByClassName() method?
for eg:-
document.getElementByClass=("has-error");
I need a the text box to turn into green if the data is valid and to red if the data is invalid using Bootstrap classes has-success and has-error.