Ajax-how to display data of different dates based on the value selected in the date control

Source: Internet
Author: User
& Lt ;! DOCTYPEhtmlPUBLIC & quot;-W3CDTDXHTML1.0TransitionalEN & quot; www. w3.orgTRxhtml1DTDxhtml1-transitional





Untitled Document

$ (Function () {$ ("# week ul a li "). click (function () {$ ("# week ul a li" ).css ("background-image", "url (.. /images/calendar/date_nowbg.png) "); // unselected background image (this).css (" background-image "," url (.. /images/calendar/date_hoverbg.png) "); // Selected background image });})

Query by date condition:

  • 2014-05-17

    Monday

  • 2014-05-17

    Tuesday

  • 2014-05-17

    Wednesday

  • 2014-05-17

    Thursday

  • 2014-05-17

    Friday

  • 2014-05-17

    Saturday

  • 2014-05-17

    Sunday


I want to display the selected date on the week of the li label, and add a click style to the li label accordingly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.