<select name="catid" id="post_catid" onchange="getSubCat(this.value, 'post_subcatid')" style="width:150px;" class="right ">
What happens if the getSubCat function that handles the onchange event is not defined or missing in code?
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.
You’ll get a JavaScript error on every change event for that select (which many users won’t notice). If you had any code inline after the getSubCat it would not be reached. That’s about it.