I figured I would share this because I found so many inconsistent hits on the internet searching for a solution. I have this dialog that I pop up and want to set the values and then retrieve the values once OK is hit using JQuery.
The HTML is pretty straight forward:
The code to set the value from my model looks like this:
var $radios = $('input:radio[name=transition]'); $radios.filter('[value=' + model.options.transition +']').attr('checked', true);
The code to retrieve the value looks like this:
model.options.transition = $('input:radio[name=transition]:checked').val();