'How to do show selected option in the phalcon volt syntax
I have an html code something like
<label>Is Pan Verification Enabled</label>
<select class="form-control" name="ispanverified">
<option >Select</option>
<option selected={{ data['ispanverified'] == 'true' ? 'selected' : '' }} value="true">True</option>
<option selected={{ data['ispanverified'] == 'false' ? 'selected' : 'false' }} value="false">False</option>
</select> <br/>
What I want to do is to show the default selected option in the select tag ,but its not working ,can anyone point me out to the right syntax?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
