In a django form, I have set the default option for a select. It is not showing those changes in UI, but after inspecting I'm seeing that the DOM is actually being changed. When I check in the console for the HTML, I can see that the selected option is set to 1, but when I ask jquery for the selected option it gives me another.
$("select[name=spread_format] option") [<option value="0">in.</option>, <option value="1" selected="selected">ft.</option>] $("select[name=spread_format] option:selected") [<option value="0">in.</option>] $("select[name=spread_format]").val() "0" What I want to accomplish is to show 1 as default. This select is being rendered in a bootstrap modal.
Strange to notice that the selected option in UI is '0', not '1' as indicated my DOM.
