bootstrat select 옵션 설정 값

2835 단어 select
<script>

    /** // textarea  UE.getEditor('22upTips',{ initialFrameWidth:"80%", initialFrameHeight:"200" }); **/ $(document).ready(function() { //select change 

        $("#app_type").change(function(){ var app_type=$(this).val(); var url="./index.php?module=operation&action=SelectChange"; var post_value = "app_type="+app_type; $.ajax({ type: "POST", url: url, data: post_value, dataType: 'json', success: function(data){
// option $(
"#upVer").empty(); if(data==0){ alert(' '); }else{ $(data).each(function(k,v){ // option document.getElementById("upVer").innerHTML +=v[0].option; $("#mainVer").val(v.mainVer); $("#upTips").val(v.upTips); $("#assetPath").val(v.assetPath); $("#newUpiniPath").val(v.newUpiniPath); $("#appStore").val(v.appStore); $("#forceUpdateVersion").val(v.forceUpdateVersion); }); // $('#upVer').selectpicker('refresh'); } } }); }); }); </script>

 
관련 자료:http://silviomoreto.github.io/bootstrap-select/

좋은 웹페이지 즐겨찾기