You must Sign In to post a response.
  • Category: JQuery

    Disable anchor should not get clicked ( it should disabled)

    hi ,

    I have below table strucure

    <td><a href="#"><label id="manual_attnd">Manual Attendance</label></a></td>
    <td><a href="#"><label id="view_attnd"></label>View</a></td>

    <td><a href="#"><label id="edit_attnd"></label>Edit</a></td>


    I want label 'Manual Attendance' to be disabled , means anchor tag should not get clicked on load.

    Thanks .
  • #769915
    Dear Ayesha,

    It can be disabled through front-end also. Find the attached modified code of yours.

    <!DOCTYPE html>

    <html xmlns="">
    <head runat="server">
    <style type="text/css">
    a.disabled {
    pointer-events: none;
    cursor: default;
    <form id="form1" runat="server">
    <td><a href="" class="disabled"><label id="manual_attnd">Manual Attendance</label></a></td>
    <td><a href=""><label id="view_attnd"></label>View</a></td>
    <td><a href=""><label id="edit_attnd"></label>Edit</a></td>

    Hope this will help you.

    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • Sign In to post your comments