How to Click a Link with jQuery | jQuery Click Event Example
To click on the given link using jQuery, you can use the following code: \n\njavascript\n$(document).ready(function() {\n $('a[data_id="details"]').click();\n});\n\n\nThis code waits for the document to be ready and then triggers a click event on the anchor element with the attribute data_id="details".
原文地址: https://www.cveoy.top/t/topic/pZe7 著作权归作者所有。请勿转载和采集!