[#32762] improve jquery selector

This patch is against staging and replaces #2564.