Home  >  Article  >  Backend Development  >  ajax-怎么根据日期控件里所选的值来显示不同日期的数据

ajax-怎么根据日期控件里所选的值来显示不同日期的数据

WBOY
WBOYOriginal
2016-06-02 11:34:061231browse

ajaxjsphp





无标题文档

$(function(){ $("#week ul a li").click(function(){ $("#week ul a li").css("background-image","url(../images/calendar/date_nowbg.png)");//未被选中的背景图片 $(this).css("background-image","url(../images/calendar/date_hoverbg.png)");//选中的背景图片 }); })

按照日期条件查询:

  • 2014-05-17

    星期一

  • 2014-05-17

    星期二

  • 2014-05-17

    星期三

  • 2014-05-17

    星期四

  • 2014-05-17

    星期五

  • 2014-05-17

    星期六

  • 2014-05-17

    星期日


我要把所选日期 显示在li标签的星期上面,并且相应的给该li标签加上点击样式

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn