I am creating a table using tag. I'm able to catch the element but not able to convert it into a string and perform the conditional check. Please help!!
$(document).ready(function(){
$('#user tr').each( function(){
//add item to array
var value = $(this).find(".user1").html();
/********* want to do something like
if (value == "Y") {
//apply a class
}
*************/
});
valuewhen you try your commented-out code?