Im trying to set the values of my text boxes from a WebGrid im MVC 3. Im able to get the data using Jquery. the boxes populates for half a second the resets. Any ideas why?
$(".select").click(function () {
var contribution = $(".select");
var parent = contribution.parent();
var children = parent.children();
var Group = children.filter(':nth-child(2)');
var Level = children.filter(':nth-child(3)');
var effective = children.filter(':nth-child(6)');
var amount = children.filter(':nth-child(7)');
//alert(amount.html());
document.getElementById("GroupDescription").value = Group.html();
document.getElementById("LevelDescription").value = Level.html();
document.getElementById("Date").value = effective.html();
document.getElementById("Amount").value = amount.html();
});