<input type="hidden" id="tabId" name="tabId" value="${model.tabId}"/>
$(document).ready(function(){ var tabId =${model.tabId}; $("#tabsId").tabs("select",tabId);
function submitData(){ var tab = $('#tabsId').tabs('getSelected'); var index = $('#tabsId').tabs('getTabIndex',tab); $("#tabId").val(index); $("#from1").submit(); }