sonal
sonal

Reputation: 319

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

I am using Liferay Search portlet.In which I want to get the Id of search button of <liferay-ui:search/> tag.also I want to trigger a 'auto click' event on 'search button'.

Upvotes: 1

Views: 260

Answers (1)

Pankaj Kathiriya
Pankaj Kathiriya

Reputation: 4210

Using jQuery , you can get search image by $('.portlet-search input[type=image]')..as liferay-ui:search tag uses input image type for search button.

Upvotes: 1

Related Questions