Clicking a Region Selector Button Programmatically
As far as I’m aware, there’s no out-of-the-box call made available by Apex to allow you to click a particular button in a Region Selector programmatically via Javascript.
The following bit of jQuery will allow you to do this. Just change the string “Personal Bio” to be whatever the string is that appears in the Region Selector button you want to programatically “click”:
$(‘span:contains(“Personal Bio”)’).parent().click();
Be aware that the string (“Personal Bio” in the above example) is case sensitive.
With a bit more work this technique could be employed so that your pages “remember” which Region was last selected in the Region Selector whenever you go back to a page.
Comments (0)
Trackbacks (0)
Leave a comment
Trackback