how to delete a variable in jquery / javascript

Subject:

references: http://stackoverflow.com/questions/6485127/how-to-delete-unset-the-properties-of-a-javascript-object

2015-07-20 10:12:16gstlouis

this worked for me.  I had to use object

 

$('#modal-action-btn').click(function(){

        var noemail = $('#noemail').val();

        alert(noemail);
        delete object.noemail;

    });

gstlouis
vote
2015-07-20 10:12:37

//delete objects need to be at the end if not they'll kill other processes
        delete object.noemail;

gstlouis
vote
2015-07-20 10:35:11