jquery track which control was clicked code example Example: detect button click jquery $(".btn").click(function(){ var clk = $(this).attr("id"); });