How to set the jquery ui accordion active header based on the header text?

How to set the jquery ui accordion active header based on the header text?

How can i set the active accordion header by text contained in the header?..

I can get the active header text like this..

Getting all the header text:
  1. jQuery("#accordion h3").text();
To get the active header text:
  1. var text = $("#accordion h3").eq(active).text();

Is there any way to make the accordion header set to active by the header text and not the index values?..

Thanks.