I want to be able to obtain the value of the variable view_data_id and store inside another variable called view_data_id_fk.
The last line of code doesn't seem to work on my end, so I'm wondering how I can go about doing it?
var view_data_id = val['view_data_id'];
// How to obtain the value of view_data_id?
<td><a href="datamapmain.php?view_data_id='+view_data_id+'"
class="link">Link</a></td>
//Will be passed on to ajax file
view_data_id_fk:$('.link').val();