Trying to programatically add links inside of a table.
$("#p"+col).append("<a href='#' id='tablep"+col+"' class='ui-link-inherit' onClick='tableSelect('p"+col+"')'></a>");
Note how ...'tableSelect('p"+col+"')'>... is in single quotes, but its parameters also have to be in quotes. So when it runs, it cuts tableSelect(
off like so and throws p1)
or whatever number it is, elsewhere.
Here's what it looks like in the console:
<a id="tablep1" class="ui-link-inherit" p1')'="" onclick="tableSelect(" href="#"></a>
See what I mean? Anyway, is there a way around this?