mutago
05-25-2014, 02:33 PM
i want to embed a clickable anchor links in the code below.
eg.
'<a href="users.html?id=' + user.id + '"></a>'
how do i achieve this in the line of code below
+"<td>"+user.id+"</td>"
<script type="text/javascript">
var newRow =
"<tr>"
+"<td>"+user.id+"</td>"
+"<td>"+user.topic+"</td>"
+"<td>"+user.view+"</td>"
+"<td>"+user.reply+"</td>"
+"<td>"+user.datetime+"</td>"
+"</tr>" ;
>
eg.
'<a href="users.html?id=' + user.id + '"></a>'
how do i achieve this in the line of code below
+"<td>"+user.id+"</td>"
<script type="text/javascript">
var newRow =
"<tr>"
+"<td>"+user.id+"</td>"
+"<td>"+user.topic+"</td>"
+"<td>"+user.view+"</td>"
+"<td>"+user.reply+"</td>"
+"<td>"+user.datetime+"</td>"
+"</tr>" ;
>