selecting a row using radio button and passing the value using button in jquery &struts2
I've to select a row of the grid using radio button and pass the value on click of "Next" button.
I'm using struts2
My jsp code contains:
	$(document).ready(function () {	
	
			$("#flowPathTable").jqGrid({
					jsonReader: { 
		           	repeatitems: false,
		    		id: "rowid",
		    		root: function (obj) { return obj; },
		    		page: function (obj) { return 1; },
		    		total: function (obj) { return 1; },
		    		records: function (obj) { return obj.length; }
		            },
		            url: jqDataUrl,
		            datatype: "json",
		            mtype: "POST",
			colNames:["","CityName"]
			colModel :[ name:'radioid', index:'radioid', width:'20%',align:'center', formatter: radio, editable:false, sortable: false, resizable:false},
			{name:"strCity", index:"strCity"}],
			loadonce: true,
			caption:"Select City"
			});
			});
			
			
		function radio(value, options, rowObject){
		            var radioHtml = '<input type="radio" value=' + value + ' name="radioid"/>';
		            return radioHtml;
        }
< s:submit type="image" src="../../images/next.png" "/>


On click of the "next button" the value has to passed. How do i do this?
						</td>
selecting a row using radio button and passing the value using button in jquery &struts2
===

I've to select a row of the grid using radio button and pass the value on click of "Next" button.
I'm using struts2
My jsp code contains:
	$(document).ready(function () {	
	
			$("#flowPathTable").jqGrid({
					jsonReader: { 
		           	repeatitems: false,
		    		id: "rowid",
		    		root: function (obj) { return obj; },
		    		page: function (obj) { return 1; },
		    		total: function (obj) { return 1; },
		    		records: function (obj) { return obj.length; }
		            },
		            url: jqDataUrl,
		            datatype: "json",
		            mtype: "POST",
			colNames:["","CityName"]
			colModel :[ name:'radioid', index:'radioid', width:'20%',align:'center', formatter: radio, editable:false, sortable: false, resizable:false},
			{name:"strCity", index:"strCity"}],
			loadonce: true,
			caption:"Select City"
			});
			});
			
			
		function radio(value, options, rowObject){
		            var radioHtml = '<input type="radio" value=' + value + ' name="radioid"/>';
		            return radioHtml;
        }
< s:submit type="image" src="../../images/next.png" "/>


On click of the "next button" the value has to passed. How do i do this?
						</td>