I am able to find the div name using the below code:
var id = $("textbox").closest("div").attr("id");
How can I hide the div based on above fetched id. I have tried with following code:
$(id).hide();
It doesn’t seems to work
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.
Hope you are getting the correct id.
Then use
$('#'+id).hide();