0
<form class="signup" id="signup_form" method="post" action="{% url 'account_signup' %}">
   {{ form.subscription_year_plan }}
   <div class="page1"> {% include "account/signup_1.html" %} </div>
   <div class="page2"> {% include "account/signup_2.html" %} </div>
</form>

This is a part of my html. {{ form.subscription_year_plan }} is available outside and inside signup_1.html but not inside signup_2.html.

What'd be the problem?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Babu
  • 2,548
  • 3
  • 30
  • 47
  • 3
    There may be a typo in `signup_2.html`. Can you attach it's source? – Pokutnik Dec 21 '12 at 13:31
  • Got it. I was trying to use `{{ form.subscription_year_plan }}` inside a `div` in signup_2.html which is being populated by ajax on document ready. – Babu Dec 21 '12 at 13:58
  • Can you add that as an answer and then accept it, so the question doesn't stay open? – jdotjdot Dec 21 '12 at 14:26

1 Answers1

1

Got it. I was trying to use {{ form.subscription_year_plan }} inside a div in signup_2.html which is being populated by ajax on document ready.

Babu
  • 2,548
  • 3
  • 30
  • 47