I'm not sure that the value of the value makes sense - you need to either delete the value or delete the entire field (and not just the value).
Based on the sample code you provided ...
For instance:
$("#str").val('')
or
$("#str").remove()
Another option, if you need to enable or disable a field (so that instead of deleting and re-creating it) would disable fields with disabled fields, they will not be sent along with the form.
$("#str").attr('disabled','disabled') and $("#str").removeAttr('disabled')
source share