Getting elements with a partial attribute match in jQuery is pretty easy. For instance
section[id^="sect_"]
would get all elements with ids bearing the form sect_xxxx. However, I need to to a step further and fetch - this is in a jQuery Mobile application - the section that is currently visible and bears an id with that form. I have tried combining the :visible modifier in various ways but drawn a blank. I'd be grateful to anyone who could suggest the right format.