How can one update hiddenfield value as data in unbound column is added/edited?
I was trying to do it like below but it didnot work. It shows 'undefined', when I try to view the value using alert.
function cellValueChange(sender,args){
var currentrow=$(this).closest('tr');
if(args.get_cell(2).get_column().get_key() == "Amount"){
currentrow.find("input[name$=hfChangeTo]").val(args.get_cell(2).get_value());
alert(currentrow.find("input[name$=hfChangeTo]").val());
}