jquery - "Next Quote" Button unable to work -
i need advice on issue "next quote" button.
here part of code think problem $("#newquote").on("click", function(){getquote();});
you can find code @ https://codepen.io/chaossaveren29/pen/vzpyez.
thanks in advance.
you should not put # in id attribute of html element.
as example, work.
<button class="btn btn-default" type="submit" id='nextquote'>next quote</button>
elaboration edit: jquery uses # in front of element name point id attribute , . point class attribute. think got mixed up. shouldn't put hash attribute wouldn't put dot classes.
Comments
Post a Comment