What happens when you use a selector like this:
$('#myelement').remove();
but no element with id ‘myelement’ is actually part of the page? Is it undefined, should we take care to make sure this does not happen?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JQuery will take care of this but i think you want to figure out what you are doing as JQuery may help mask some underlying issue where you believe that item is there?