I'm not sure if I got your question correctly, but the following jQuery magic will find your <div>element id, hide it, find all the <input>controls in it and reset their values to delete the line.
$("#myDiv").hide().find("input").val("");
, <input> (, <select> <textarea>), . reset ( , ), , .