Get the value of “onclick” with jQuery? December 30, 2023 by Tarik i have never done this, but it would be done like this: var script = $('#google').attr("onclick")