I'm trying to create a button that when pressed will remove the last character entered in a text field called "cell" using jQuery.

Here is what I have:

Code:
$("#backspace").click(function() {
    $("#cell").value($("#cell").substring(0, $("#cell").length() - 1);
});
It doesn't work Can someone shed some light on what I'm doing wrong.

Thanks!