function selectList(){$("select").each(function(){var $this=$(this);$textSelect=$this.find("option:selected").text();$this.siblings(".ui-btn-inner").text($textSelect).append('');$this.bind("change",function(){$currentOption=$this.find("option:selected").text();$this.siblings(".ui-btn-inner").text($currentOption).append('')})})}function radioCustom(){$(".ui-radio").change(function(){$('input[type="radio"]').removeAttr("checked");$('input[type="radio"]').siblings("label").removeClass("radioSelected");$(this).find('input[type="radio"]').attr("checked","checked");$(this).find("label").addClass("radioSelected")})}function checkboxCustom(){$('input[type="checkbox"]').click(function(){if($(this).attr("checked")=="checked"){$(this).siblings(".ui-btn-inner").addClass("checkBoxSelected")}else{$(this).siblings(".ui-btn-inner").removeClass("checkBoxSelected")}});$('input[type="checkbox"]:checked').siblings(".ui-btn-inner").addClass("checkBoxSelected")}$(document).ready(function(){$(".subscribe .obj_form .selectLine .ui-select:last").css("margin","0");radioCustom();checkboxCustom();selectList()});