i want to save javascript object in a place, so if selected row is getting trigger, i can use that row object again by different methods.
maybe saving it in input hidden field can work? but not sure.. how would you do it?
im trying to do following, but that dont work, obviously my code is wrong, but i want to show you, so you can maybe tell proper way to do it.
<script>
jQuery(function($) {
var video = {title: 'this is title', time: '2:32:20'}
$('.arr').val(video);
$('.show').click(function() {
console.log($('.arr').val());
});
});
</script>
<input type="hidden" name="arr" class="arr" value="" />
<input type="button" class="show" value="Show" />