jQuery Click Event Handling
User jQuery(".sorticon").on('click', function(e) { alert("adsfd"); var sortcol = jQuery(this).data('col'); var sortorder = jQuery(this).data('sort'); $("#sortcol").val(sortcol); $("#sortorder").val(sortorder); search(); }) make above body with on Assistant You can use the `.on()` method in jQuery to handle events for multiple elements, and you can simplify the code using an arrow function for better readability. Here’s how you can rewrite […]