简体   繁体   中英

How to get the ID of search button in Liferay search portlet

我正在使用Liferay Search portlet 。我想在其中获取<liferay-ui:search/>标签的搜索按钮的ID。我也想在'搜索按钮'上触发'自动点击'事件。

使用jQuery,您可以通过$('。portlet-search input [type = image]')来获取搜索图像。因为liferay-ui:search标签使用输入图像类型作为搜索按钮。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM