tags

Javascript: Remove different option-tags from a dropdown list depending on another dropdown?

Yeah, the title is a mess. Here's what i'm trying to do: I have one main dropdown list where i can choose between, let's say, two options. Option1, and Option2. If Option1 is selected, i don't want anything to happen. If Option2 is selected, i want to remove one option-tag from another dropdown list. <select name="main_dropdown"> <...

Custom django template tag issue on AppEngine

So I have beating my head against the wall on this. I feel like I have interpretted the docs and examples I found, but this just won't seem to go away. Here is the tag code: from google.appengine.ext import webapp register = webapp.template.create_template_register() def test_tag(): return "TEST!" register.simple_tag(test_tag...