I know how to do this:
How to replace the div in Rails 3 using AJAX?
But while that replaces the content of the div, it doesn’t change the id value of the div.
How can I change the id of the div (along with its content)?
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.
Just set
idattribute for the div: