Quick noobish question.
Can you put if statement inside jQuery
append function?
I have this code
$('table#dataTable tbody').append('<tr>
<td class="success">'+json.forms[i].name+'</td><td>'+json.forms[i].category+'</td>
</tr>');
And i would like to add an if statement to the second <td></td>
like if(something === x){ do it)else{don't do it};
and then continue with append.