call javascript function in a view from controller
I have created a JavaScript function in a view which is supposed to return a value from a selected radio button. values from view fields are posted to a function of a controller which in turn will execute an associated model to save the data. how can i get the value returned from the javascript function so that i can assign it to a variable in order to save it?