Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4124432
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:44:24+00:00 2026-05-20T23:44:24+00:00

<span id=’question’>{{QuestionText}}</span> <br> <form action={{address}}> {% for each in AnswerQuery %} <span>{{each.answer}}</span><input type=’radio’ name=answer>

  • 0
<span id='question'>{{QuestionText}}</span>
<br>
<form action={{address}}>
{% for each in AnswerQuery %}
<span>{{each.answer}}</span><input type='radio' name="answer">
<span>Votes:{{each.answercount}}</span>
<br>
{% endfor %}

Hey, I am using django template for google app engine project. what is above is a snippet of my codes. But I am wondering if there is a way that I can choose to display the html partially. like if under some circumstances, I dont want the users to see the QuestionText, so I just close it up somehow while still displaying the rest of it. I know I can render different templates which are modified accordingly,but would that be too trivial that I have to render a bunch of different templates. Would be that nice if I can just change a part of the template and reuse it. I guess the magic is from the django part, the client side,but I dont know how. Any help? Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T23:44:24+00:00Added an answer on May 20, 2026 at 11:44 pm

    If you’d like to hide the content and they show it with JavaScript (client-side) based on some user action, this will work:

    <span id="question" style="display: none;">{{QuestionText}}</span>
    
    <script type="text/javascript">
        // This requires jQuery
        $('document').ready(function(){
            if(some_foo_bar == true){
                $('#question').show();
            }
        });
    </script>
    

    If you want to just not show the portion of content at all (ie, don’t even output it to the browser), this will work:

    {% if some_variable_set_in_django_view_context %}
    <span id='question'>{{QuestionText}}</span>
    {% endif %}
    <br>
    <form action={{address}}>
    {% for each in AnswerQuery %}
    <span>{{each.answer}}</span><input type='radio' name="answer">
    <span>Votes:{{each.answercount}}</span>
    <br>
    {% endfor %}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The span element seems to be exactly like a div, but at the in-line
I expected the two span tags in the following sample to display next to
I have a span element inside a table td element. The span tag has
I want to calculate the time span between 2 times which I saved in
I want to select a bunch of span s in a div whose CSS
$(document).ready(function() { $(span.link).mouseover(function(e){ $(this.children).css(display,inline); }); }); I'm not a javascript expert, but I've cobbled
I want to resize the font of a SPAN element's style until it the
I have to use unsigned integers that could span to more than 4 bytes,
I am working with: #top ul li.corner span.right-corner:hover { background-image:url(images/corner-right-over.gif); width:4px; height:15px; float:left; }
I'm in a situation where I need to span Google App Engine entity relationships

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.