jQuery input button click event listener
Brand new to jQuery. I was trying to set up an event listener for the following control on my page which when clicked would display an alert: <input type="button" id="filter" name="filter" value="Filter" /> But it didn't work. $("#filter").button().click(function(){...}); How do you create an event listener for a input button control with jQuery? First thing first, button() is a jQuery ui function to create a button widget which has nothing to do with jQuery core, it just styles the button. So if you want to use the widget add jQuery ui's javascript and CSS files or alternatively remove it,