Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 542487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:27:07+00:00 2026-05-13T10:27:07+00:00

i have a calendar formed table. and i was wondering how can i disable

  • 0

i have a calendar formed table. and i was wondering how can i disable all the clicks under that cell. because my argument would be. anything less than the current date will be disable. meaning all click functions of all the child of the td on that dates will be disabled (add, edit, view list)

can you help me out. i cant give any code. coz is quite unorganized at this moment.

hope you can give me an idea.. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:27:07+00:00Added an answer on May 13, 2026 at 10:27 am

    On the event handler of your click event, you can prevent link following by returning false.

    Super simplified:

    function myClickHandler(e)
    {
        var target = e.srcElement;
        if (!target)
            target = e.target;
    
        var sdate = new Date(target.parent.getAttribute("rel"));
        if (sdate < currentdate) // doesn't take into account time!!
            return false;
    }
    

    Given the following markup:

    <table>
        <tbody>
            <tr>
                <td class="day" rel="1/1/2010">
                    <a href="edit" onclick="return myClickHandler(e)">Edit this day</a>
                </td>
                ...
            </tr>
        </tbody>
    </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Calendar of Events table and I would like to select events
I have a calendar_date_select in a view that shows a table listing all the
I have a calendar created with a table. Users can mark the dates on
Say I have a calendar table that is supposed to keep track of cars
I have a calendar that is a table. For some reason, IE is adding
I have a calendar/table that when you hover over each day we have a
I have a calendar program that I am trying to convert to iPad (using
I have a calendar table in my MYSQL database with one field named datefield
I have a calendar table with data from year 2000 to 2012 (2012 wasn't
I have the calendar.ics file. I have to read that file from my application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.