In my HTML code, I’ve got a certain cell whose value should be cleared if a link button is pressed. I’d like to achieve this using jQuery and here’s how I tried to do it but with no results:
var $delActionDate = $('#delete_Event');
$delActionDate.live('click', function() {
var myRow = $delActionDate.parent().parent();
myRow.find('#dateCell').html() = "";
Any ideas on how to do this?
As Luca said, to update the html content you use
html("")rather thanhtml()="".In additions, assuming your parent() stuff is correct based on your HTML, the change you need to make so that the selected row is based on which button is pressed should be: change
to