Hello i'm working with data tables and model view controller and i want to display selected cells in another partial view For example this is my table with data:
<table id="display1">
<tbody>
<tr>
<td><a href="#">0.34</a><td>
<td><a href="#">0.35</a><td>
</tr>
</tbody>
This is my script:
$(document).ready(function(){
$('#display1 tbody').on('click', 'td', function () {
$("#selectedOption").html($(this).val());
});
});
where selectedOption is a div inside a partial view. The problem is that it does not display the selected cell Please help me ,this is urgent