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 7191741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:47:38+00:00 2026-05-28T19:47:38+00:00

This is my last question diabling a hyperlink. The hyperlink does disable but the

  • 0

This is my last question diabling a hyperlink. The hyperlink does disable but the problem is that is disabling all hyperlinks with the same class. All hyperlinks have the same class, if not then they won’t work. But I only want the hyperlink on top (in html) to be only disabled not the hyperlinks in the added rows (jquery code) to be disabled. How can I differenciate the 2 so that not all hyperlinks are disabled?

Below is code for disabling the hyperlink:

 $(".showGrid").unbind('click').click(function (event) {
        event.preventDefault();
        return false;
    })

Below is hyperlink in full html (I want this hyperlink to be disabled):

<table id="optionAndAnswer" class="optionAndAnswer">
<tr>
      <th colspan="2">
        Option and Answer
    </th>
</tr>
<tr class="option">
<td>Option Type:</td>
<td>
<div class="box">
    <input type="text" name="gridValues" class="gridTxt maxRow" readonly="readonly" />
    <a href="#" class="showGrid">[Open Grid]</a>
</div>
</td>
</tr>
</table>

Below is hyperlink in jquery code (Don’t Disable this hyperlink):

function insertQuestion(form) {  

var $tr = $("<tr class='optionAndAnswer' align='center'></tr>");
 var $options = $("<td class='option'></td>");

  $('.gridTxt', context).each( function() {

     var $this = $(this);
     var $optionsText = $("<input type='text' class='gridTxtRow maxRow' readonly='readonly' /><span href='#' class='showGrid'>[Open Grid]</span>").attr('name',$this.attr('name'))
                     .attr('value',$this.val())

    $options.append($optionsText);

    });

$tr.append($options);

}
  • 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-28T19:47:39+00:00Added an answer on May 28, 2026 at 7:47 pm

    Can you add a id and disable by using $(“#new_id”)?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully the last NN question you'll get from me this weekend, but here goes
I posted this question last week, but I wasn't very clear on what was
This is similar to my last question; but from a different angle. See if
This is a spin off from my last question How does delphi convert ModalResult
(This is a lot like my last question, but I just realized I was
This is related to my last question . I have an application that I
Hopefully the last question in choosing an implementation language for this web app, but
Okay this is similar to my last question but what I ended up doing
Due to a problem posting, my last question (duplicate of this) was closed. Background
This is my last question . I try to improve my class Thread. Constructor

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.