JQuery for IR question...

Hi all...

Please help with this jquery script I was trying to write.

I have an IR report, based on the value of the column (column 5), I need to make one
link (< a href "" > ")" "clickable or not" "which is on (column 7).

I use the script jquery layman at the address below.
 
$('table.apexir_WORKSHEET_DATA td:nth-child(5)').each(function() {  // This is the IR column where i need to check the values
var doc_grp = $(this).text();
if (doc_grp == 'CONTRACT')  // If the column value is "CONTRACT" I need to make that link "not clickable"
  { 
 $("a.edit-img").removeAttr('onclick'); 
 $("a.edit-img").removeAttr('href'); 
// The above stmts works fine, but they are applying to all the rows in the IR
 
//*** I need the above stmnts apply only to the "particular row " that matches the criteria
  
  }
else
  {
  $(".edit-img").show();
  }
});
any who... Please help me with this.

Thanks in advance...

The reason that your code is getting applied to all lines is because you specify a class name which line "edit-img" must be used. You are a loop in column 5, check its value but hiding all a links having a class 'edit-img.' What you need to do is set it to hide that the link in the column 7, line being looped. See my fix your code below:

$('table.apexir_WORKSHEET_DATA td:nth-child(5)').each(function() {  // This is the IR column where i need to check the values
var doc_grp = $(this).text();
if (doc_grp == 'CONTRACT')  // If the column value is "CONTRACT" I need to make that link "not clickable"
  {
 //$("a.edit-img").removeAttr('onclick');
 //$("a.edit-img").removeAttr('href');
// The above stmts works fine, but they are applying to all the rows in the IR

//*** I need the above stmnts apply only to the "particular row " that matches the criteria

  // begin correction to your code
   var vo_col7 = $(this).parent('tr').children('td:nth-child(7)');
   $('.edit-img', vo_col7).replaceWith(function() {
      return $(this).text();
   });
  // end correction to your code

  }
else
  {
  $(".edit-img").show();
  }
});

Tags: Database

Similar Questions

  • In support, forum, signed in, where can I associate with the questions I ask myself? Years back, could get the RSS feed for the question. Always available?

    Where can I associate with my questions about my account? The search for user name does not work. A few years back, you could subscribe to an RSS feed for a question, yours or others. Is - this past, if so, why? How can you save the question, without saving your question text in a document and copy and paste into search? Version of FF 19.0.2.

    Thank you.

    Your messages will now appear in your profile: https://support.mozilla.org/en-US/user/225440

    You can also use the old method of "My Contributions" link: https://support.mozilla.org/questions?filter=my-contributions

    Is that it?

  • I lost the code for the option menu 'limitations' of the iPhone 4, how can you do then? so I can come and factory reset, it is a 4 digit code, so I can be able toexample factory reset the phone, don't know if this is the right forum for my question but

    I lost the code for the option menu 'limitations' of the iPhone 4, how can you do then? so I can come and factory reset, it is a 4 digit code, so I can be able toexample factory reset the phone, don't know if this is the right forum for my question but

    Sorry, but the restriction password cannot be reset, it is part of the backup and restore a backup that was taken after the restrictions were activated, restore this code again.

    You will have to start without the help of the data backup, configure the phone to factory settings and start over. Follow the steps mentioned in this article:

    Use iTunes to restore your device to factory settings - Support Apple iOS

    If you lose or forget your password restriction, you must erase your device and then put it up as a new device to remove the restriction password. Restore the device by using a backup does not delete the access code.

    copied from: Sur les Restrictions (parental control) on iPhone, iPad and iPod touch - Apple Support

  • Emailing to my question mark and supervise the work on the first, then the small e accent when arrives to her frame them and the capital E with the accent comes for the question mark.

    get the e french instead of the question mark or frame them

    Emailing to my question mark and supervise the work on the first, then the small e accent when arrives to her frame them and the capital E with the accent comes for the question mark.  Can you tell me what is the cause and how to fix it.  Thank you.

    Hello

    I suggest you according to the question in this forum and check if that helps:

    http://windowslivehelp.com/forums.aspx?ProductID=15

    It will be useful.

  • Forum for the question of download to download Photoshop 14 could not be found.

    Where is the forum?  Adobe is not allowing me to download my upgrade due to the "talk" of their site, but they took my money!  Can someone tell me when this will solve, or if there is another place I'm supposed to get my copy, so I paid.

    You have found the forum for download questions

    When you ask a question you will need to provide some basic information

    -Forum quick start https://forums.adobe.com/docs/DOC-5601

    Mac or Windows and EXACTLY what version of the operating system?

    Recent Mac AND Windows operating systems have been known to cause problems "weird."

    Using a full account of computer administrator with read/write permission?

    kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    When you have program questions, here is a list of Forums https://forums.adobe.com/thread/1929760 to find a forum for your program

  • How to use the sign ' # ' in jQuery for id?

    How to use the sign ' # ' in jQuery for id? When I try to use it as ($('#PropertyAttributeValue').css ('color', 'red') ;) I got error as follows:)

    The CFML compiler treated:

    • An expression that starts at line 64, column 37.
      The expression might be missing an end #, for example, #expr instead of #expr #.
    • The body of a beginning of tag cfoutput on line 19, column 18.

    Use the two hashes to escape the first:

    ($('##PropertyAttributeValue').css ('color', 'red') ;))

  • Addition of carousel created with jQuery for project

    I tried to add a carousel developed using jquery for my RoboHelp HTML 9 (webhelp) project and I am having some problems.  Whenever I build my project the carousel does not charge whenever I have anything that is contained in the content categories in the navigation bar on the left (opening the index.htm).

    However, if I have nothing in the content categories or I open the file htm containing the carousel directly (rather than clicking on index.htm), the carousel is loaded correctly.

    Are there files produced by RoboHelp I need to manually change to allow the javascript files that I use to work with index.htm when there are content categories?  I'm new to RoboHelp and would appreciate advice on how to overcome this problem.

    Hello

    Have you tried jQuery in no conflict mode? http://API.jQuery.com/jQuery.noconflict/

    When you use a tool like Firebug debugging, what are the errors pop up in the console?

    Take a bow

    Willam

  • Backup Time Machine put on for the question of the judgment

    I use time machine - mac pro to 2008 - 1 TB drive with its own power supply - 500 GB of backups.

    Have had a few teething problems that don't seem to point to any problem-

    Before stopping - if I just saved all the files - I always ask a time machine backup.

    If I was just on the internet - I'm just asking for a backup...

    Anyway I've asked immediately rather than wait a minute--but with problems at startup - decided to wait for the minute - about 15 seconds in the time-out has heard that the drive reports the time machine was starting a backup, so I canceled the stop & waited until the backup is complete.

    So the question is if a time machine backup was cut by a stop - is there a point where it would cause problems with the next on power.

    (I noticed that on a power which had a problem - time Annex machine backup was for the same time that commissioning - and I had stop watch at the same time I started up the next day)

    notcloudy wrote:

    I use time machine - mac pro to 2008 - 1 TB drive with its own power supply - 500 GB of backups.

    Have had a few teething problems that don't seem to point to any problem-

    Before stopping - if I just saved all the files - I always ask a time machine backup.

    If I was just on the internet - I'm just asking for a backup...

    Anyway I've asked immediately rather than wait a minute--but with problems at startup - decided to wait for the minute - about 15 seconds in the time-out has heard that the drive reports the time machine was starting a backup, so I canceled the stop & waited until the backup is complete.

    So the question is if a time machine backup was cut by a stop - is there a point where it would cause problems with the next on power.

    (I noticed that on a power which had a problem - time Annex machine backup was for the same time that commissioning - and I had stop watch at the same time I started up the next day)

    Issues of time machine were related to my problems with Finder/Spotlight.

    I put the drive time machine in the private domain of Spotlight.

    A ran a disk check - no problem

    Went into the preferences of time machine and instead of just turn on--changed the drive -.

    time machine turned on

    forced a return to the top

    Entered time machine - deleted the backups of an IPHOTO library which had damaged (had deleted from the hard drive)

    Time Machine works fine

    It looks like nothing is everything

  • Quick Fix for more questions to eFax (Photosmart 7510 &amp; Envy 110/114)

    Problems resolved by the patch:


    • Cannot send eFaxes
    • Cannot receive eFaxes
    • Cannot connect to the eFax on the front panel of the printer.
    • Cannot save eFax on the front panel of the printer.
    • Trying to access with eFax, it says that the printer is not connected wireless.
    • Trying to access with eFax, it asks that you activate web services before continuing.

    The fix:


    First, press the ePrint button in the upper left corner of the screen to your printer to access the menu of Web Services.

    Once there, press the button "settings".

    If printing is turned on, turn it off and then back on. Press the return key, then press 'Print the State'.

    If ePrint is off, turn it on. Press the return key, then press 'Print the State'.

    These steps may seem strange given that the problem is with eFax and eFax works on printing via ePrint service.

    If this fix does not work for all of the questions listed above, the problem is probably related to something else. Let me know what problem you are having in this thread and I will do everything I can to get all this work for you.

  • For the question of loop/formula node/Maj register_Beginner

    Hello

    I am a beginner of Labview and have a newbie question. I think that's most of you very easy, so please try to help me soon

    I (X, Y) datavalues... I calculated the average arithmetic using a formula node and a loop for and got (X', Y') out. Now, I want to take the output X' and Y' and calculate an average value in reference to X and Y. Thus, the same calculation in the loop for, but I want to take the output values and feed values again under the entry name. This should be played N times and routes.

    I tried using shift registers, but failed to connect properly as I can get what I want. I have attached here this part of my vi where I have the problem. I hope you can help me. Thanks in advance.

    Hi Sarah,.

    If you need to put the X "-paintings in a registry change, while the original X table remains constant:

  • Facial recognition technology Optimus for T410 questions - please help

    Hi guys, I bought a T410 with NVS 310 graphics card and built-in webcam. Although the battery 9 cells works really well, I always like to save more power using the integrated graphics card Intel in light load. It's supposed to be done using NVIDIA Optimus but I can't ' find it anywhere or how to activate it. Some have said depends on pilots and I did not try that again. Please help for a long time.

    The next question is the software of face recognition, as my friend's Asus laptop has Smartlogon using face. I really enjoy doing on my T but I searched a lot of places and can't find it. I knew he had formerly VeriFace which seems to have stopped developing for Thinkpad. If anyone has this software, please give me the link.

    And once I found a problem with a device called Lexmark X 422, windows 7 reports that it may not start (code 10), I try the new driver and still no use. I have disable (uninstall) it can restore the entire system and now I can't find it in device manager to try to fix it again. My question is what is this device and how to correct these problems?

    Thank you, T rocks!

    Hi and welcome to the forum!

    To Optimus, take a look:- http://support.lenovo.com/hk/en/HintsandTips/hints_show_12832190176531.html

    Lexmark X 422 was probably your webcam, there is no need to do anything if the machine works fine now.

    Not sure on the recognition of faces, as far as I know there not this feature for ThinkPad.

    I hope this helps.

  • Need help for the Partition of PL/SQL query for a question

    Hi all


    I'm running on a question that I'm not able to get the desired result. I would appreciate if one of you experts can help resolve this.

    SQL * more: Production of release 11.2.0.1.0 game 4 Feb 09:31:26 2016
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options


    with t as)
    Select 1 numero_enregistrement, Student_ID 123, nvl (trim (01), 'NULL') like Item_id, 'ITEM_ID_01' FIELD_NAME Union double all the
    Select 1 numero_enregistrement, Student_ID 123, nvl (trim(' '), 'NULL') like Item_id, 'ITEM_ID_02' FIELD_NAME Union double all the
    Select 1 numero_enregistrement, Student_ID 123, nvl (trim(' '), 'NULL') like Item_id, 'ITEM_ID_03' FIELD_NAME Union double all the
    Select 1 numero_enregistrement, Student_ID 123, nvl (trim(' '), 'NULL') like Item_id, 'ITEM_ID_04' FIELD_NAME Union double all the
    Select 1 numero_enregistrement, Student_ID 123, nvl (trim(' '), 'NULL') like Item_id, 'ITEM_ID_05' FIELD_NAME Union double all the
    Select 1 numero_enregistrement, Student_ID 123, nvl (trim(' '), 'NULL') like Item_id, 'ITEM_ID_06' FIELD_NAME Union double all the
    Select 2 numero_enregistrement, Student_ID 123, nvl (trim('01'), 'NULL') like Item_id, 'ITEM_ID_01' FIELD_NAME Union double all the
    Select 2 numero_enregistrement, Student_ID 123, nvl (trim('02'), 'NULL') like Item_id, 'ITEM_ID_02' FIELD_NAME Union double all the
    Select 2 numero_enregistrement, Student_ID 123, nvl (trim('03'), 'NULL') like Item_id, 'ITEM_ID_03' FIELD_NAME Union double all the
    Select 2 numero_enregistrement, Student_ID 123, nvl (trim('01'), 'NULL') like Item_id, 'ITEM_ID_04' FIELD_NAME Union double all the
    Select 2 numero_enregistrement, Student_ID 123, nvl (trim('01'), 'NULL') like Item_id, 'ITEM_ID_05' FIELD_NAME Union double all the
    Select 2 numero_enregistrement, Student_ID 123, nvl (trim('02'), 'NULL') like Item_id, 'ITEM_ID_06' double FIELD_NAME)
    SELECT distinct COUNT (*) OVER (PARTITION BY numero_enregistrement ORDER BY numero_enregistrement) REC_COUNT, numero_enregistrement, STUDENT_ID, ITEM_ID, Field_Name FROM t
    where ITEM_ID = 'NULL '.

    I get the following result.


    NUMERO_ENREGISTREMENT ITEM_ID FIELD_NAME STUDENT_ID REC_COUNT
    5                                   1                                             123                              NULL               ITEM_ID_02
    5                                   1                                             123                              NULL               ITEM_ID_03
    5                                   1                                             123                              NULL               ITEM_ID_04
    5                                   1                                             123                              NULL               ITEM_ID_05
    5                                   1                                             123                              NULL               ITEM_ID_06


    My desired output is

    Rec_COUNT Student_ID ITEM_ID FIELD_NAME numero_enregistrement
    5 1 123 NULL ITEM_ID_02, ITEM_ID_03, ITEM_ID_04, ITEM_ID_04, ITEM_ID_05

    Thanks in advance

    Rajesh

    Hi, Renon,

    Thanks for posting the sample data and results; It is very useful.

    Be sure to explain exactly how you get these results from these data.  There are many different reasons you may have, that all happen to produce the same results with the sample data you posted, but will get different results with other data sets.

    This looks like a job for aggregate (including the LISTAGG) functions and GROUP BY, not for functions, analytical and PARTITION BY

  • Investigation of the mode for quick question

    Hello

    I am using Captivate 7 end to create quizzes.

    I would like to use a short questions survey mode. Where are the answers which are written by learners in this case.

    Thank you very much for your answers.

    SEB.

    It depends on both the SGA as on Captivate. You can try a question short answer which is classified and see if the LMS reports the answer?

  • Contact for any questions on photo for business licenses

    I want to buy a subscription to Adobe Stock Buy photos for my business and I need accurate information about the licenses for print media, online social. Can anyone suggest a support email address or a phone number for the Austria where I can ask these questions? The hotline for the Austria 0800 7239761 is apparently not valid more.

    I'd appreciate your help!

    I want to thank you again for your help - I found a phone number where my questions have been answered. It is 0800-291-932.

    Thank you for your time!

  • For many questions quiz preferences

    I want the following preferences on all issues in my quiz. Quiz preferences is not. Can we do otherwise? If not, I have go to 40 question slides and change each of them one by one!

    Cp quiz properties.jpg

    Select all of the slides in Question on the film and edit the properties Quizzing Panel for each of them in a single action?  Why do it one by one?

    Some features can be defined globally in Quiz preferences as Shuffling answers, but if you select aspects of question slides that are common to all still be modified.

Maybe you are looking for