please how i can get correctly the value from the drop down list, i have used django-widget-tweaks library .
this is the code of the field dropdown list that i want to get the value string from it:
<p >{{ form.category_column.label_tag }}</p>
<p id="category_column_id">{% render_field form.category_column autocomplete="off" hx-get="/sizescolumn/" hx-target="#id_sizes_column" %}</p>
I have tried to got the value using javascript by this line of code :
var select = document.getElementById('category_column_id').value;
PS: I want to get the value string of this field(dropdown list) to compare it with another value string.
---->but it doesn't work. thanks in advance.