I am new to jQuery and I don't know how to get events when we press the button on the following code. Please help me.
<div class="key">
    <div class="buttonWrapper">    
        <span data-i18n="keypad.one" class="button i18n"></span>
    </div>
</div>
				
                        
First you want to capture what element you want to use, using
$(). So in your case:Then after you have gotten your element using
$()you want to bind a event to it. In your case the.click()event:To learn more about jQuery, I strongly recommend looking at their API. For more information about the
.click()event click here. To learn more about events in general click here.