Skip to content Skip to sidebar Skip to footer

Django Crispy Form - Use Radio Button To Hide/show Other Fields

please I have a question about creating a form using Django-crispy-form. I want to have a form which has 2 fields and the selection of the first field hides/shows the second one.

Solution 1:

For step 3 in the HTML file, try using:

$('input[name="cargo"]:checked').val();

Post a Comment for "Django Crispy Form - Use Radio Button To Hide/show Other Fields"