RZ has a good solution
( javascript) , "" CharField, , "" ChoiceField
edit: , style="display: none;" HiddenInput
- ( jQuery):
$("#id_myChoiceField").change(function() {
if ($(this).val() == 'other') {
$("#id_myOtherInput").show();
}
else {
$("#id_myOtherInput").hide();
}
});
required=False "Other" Charfield