Here is my code, my question is in the comment:
function (align) {
var column = $(`'<td>'`);
// now i need syntax to set align property to this td element
// column.align = align (not working)
}
As shown, column.align = align
is not working.
Where am I going wrong?
it seems you're using jQuery, so you can do something like :
column.attr('align', 'right');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With