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

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

WBOY
Release: 2016-06-02 11:34:06
Original
1301 people have browsed it

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标签加上点击样式

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template