zoukankan      html  css  js  c++  java
  • easyUI 日历控件 -- 设置背景提示

    再用easyui的时候,发现easyui的input标签不支持h5的placeholder

    解决办法:

    当页面加载完毕的时候,将easyui生成的input标签的placeholder重新设置

    ===========================
    $(".easyui-datebox").each(function(i){
    var span = $(this).siblings("span")[i];
    var targetInput = $(span).find("input:first");
    if(targetInput){
    $(targetInput).attr("placeholder", $(this).attr("placeholder"));
    }
    });

    ===========================

    body中:

    <input name="startTime"

              id="startTime"

              type="text"

              data-options="formatter:dateFormat,parser:dateParser,editable:true"

             style="150px; height:30px; background-color:white; "

             placeholder="yyyy-mm-dd"

             class="easyui-datebox" />
    &nbsp;至&nbsp;
    <input name="endTime"

        id="endTime"

        type="text"

        data-options="formatter:dateFormat,parser:dateParser,editable:true"

        style="150px; height:30px; background-color:white; "

        placeholder="yyyy-mm-dd"

        class="easyui-datebox" />

     ===========================

  • 相关阅读:
    STL源代码剖析——STL算法之set集合算法
    iOS + Nodejs SSL/Https双向认证
    C语言将10进制转为2进制
    图的遍历算法
    Web—CSS概述
    苹果新的编程语言 Swift 语言进阶(八)--属性
    UVa 10700
    C++实现KMP模式匹配算法
    软件project
    oralce GROUPING SETS
  • 原文地址:https://www.cnblogs.com/caer/p/5769307.html
Copyright © 2011-2022 走看看