asyraf9/jquery-mobile — Issue #81: Splitview with forms - retaining active states of radiobuttons
Author: cicero19
Created: 2011-12-15 15:04:23+00:00
State: open

When using splitview with a continuous form spread across multiple pages, the active states of selected radio buttons would be cleared (the button values were retained). This is due to some code in the splitview.js file that clears the active state for the side panel.

I added an "li" tag in front of the two lines of code that does this and the active states of my selected radio buttons were retained.

$('li.ui-btn.'+$.mobile.activeBtnClass).removeClass($.mobile.activeBtnClass);
$activeClickedLink = $link.closest( "li.ui-btn" ).addClass($.mobile.activeBtnClass);

Hope this helps anybody encountering a similar problem.