hello guys I have a total of 10 buttons which have a value that I want to extract their value with a click depending on which is the clicked vote I'm doing with jquery but I do not know what I'm doing wrong here my code:
$("#evaluate button").click(function(){
alert($(this).val());
})
<div id="evaluate">
<button value="1"><b>1</b> </button>
<button value="2"><b>2</b> </button>
<button value="3"><b>3</b> </button>
<button value="4"><b>4</b> </button>
<button value="5"><b>5</b> </button>
<button value="6"><b>6</b> </button>
<button value="7"><b>7</b> </button>
<button value="8"><b>8</b> </button>
<button value="9"><b>9</b> </button>
<button value="10"><b>10</b> </button>
</div>
thanks any help I thank you very much