Why can't I pass the num variable to this function like so:
function getColumnData(num) {
var colVals = $('#newtable td:nth-child(num)').map(function(){
return $(this).text();
}).get();
alert(colVals);
}
Is there an easy way around this?
Thanks.