easyui selectbox 賦值 取值


賦值 取值

  // Redefine the banner
    var storeName_value = '@ViewBag.StoreName';
    var department_value = '@ViewBag.Department';
    var changeDate_value = '@ViewBag.ChangeDate';
    $('#StoreName option:selected').text(storeName_value);   
    $('#Department option:selected').text(department_value);
    //$('#StoreName').combobox('setValue', storeName_value);
    //$('#Department').combobox('setValue', department_value);
 

    // bind searchBtn
    $('#this_submit').bind('click', function () {
     
        // var st = $('#StoreName option:selected').text().trim();
        // var dep = $('#Department option:selected').text().trim();
        var st = $('#StoreName').combobox('getValue');
      
        var dep = $('#Department').combobox('getValue');
      
        var changeDate = $('#datepicker').val();

        var href = '../';
        href += '&storeName=' + st + '&department=' + dep + '&changeDate=' + changeDate;
        href += '&page=1&size=8';
        window.location.href = href;
    });
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM