1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

How to add new condition in java code for if statement

Discussion in 'JAVA, SOA and Application Development' started by akika, Apr 11, 2017.

Tags:
  1. akika

    akika Active Member

    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    55
    Location:
    New Delhi
    Hi,
    In below code, how can i make the edit first column not visible when the if condition is met.
    i.e ID = 123 & status = Cancel , the edit button is disabled but shouldnot appear on form. Plz help. Or can this code be translated to pl/sql??

    Code (Javascript):
    var table = $(".a-IRR-table tbody");
    table.find('tr').each(function (i, el) {
        var $tds = $(this).find('td'),
            edit = $tds.eq(0).text(),
            id = $tds.eq(1).text(),  
            status = $tds.eq(2).text();
       
    if (ID == '123' & status == 'CANCEL')
    {
        $tds.eq(0).click(false);
    }

    });