jeudi 24 novembre 2016

Two elements in Find and If conditional

I want to apply a statement if specific values of two cells in my table exist, but I don't know how to do that statement.Than

$(function() {
    $("#pizarra #trPizarra").each(function() {
        var filon = $(this).find('#tdEdo, #tdImg').text();

        if (filon == "listo") {
            alert('LISTO');
        }

    });
});

Aucun commentaire:

Enregistrer un commentaire