This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
phplee
Hi
Im using Semantic UI for my forms as they are a lot more modern than bootstrap forms. However I'm trying to invoke the data-request for ajax call on a semantic dropdown but its not working. am guessing as semantic generates a dropdown separately then the data-request isn't being triggered.
<div class="ui selection dropdown" style="width: 100%">
<input type="hidden" name="options[{{ property.id }}]" {{ property.required ? "required='true'" : "" }} data-request="onChangePropertyOption"
data-request-success="onChangePropertyOptionSuccess(data)">
<i class="dropdown icon"></i>
<div class="default text">{{ property.placeholder }}</div>
<div class="menu">
{% for option in property.getCurrentOptions(product) %}
<div class="item" data-value="{{ option.title }}">{{ option.pivot.title|default(option.title) }}</div>
{% endfor %}
</div>
</div>
can anyone please advise me.
1-1 of 1