AnsweredAssumed Answered

jquery

Question asked by ce0065617 on Feb 14, 2019

I am trying to change the order of a minibase lookup. Instead of Starts With to be the default, I want Contains to be the default. Here is my code but it is not working.

 

<script>

$(document).ready(function () {

$('#sel-sw-content-minibasefilter-field3451-comparetype').html('<li value="C" itemid="C" class="selected"> Contains </li> <li value="S" itemid="S"> Starts With </li>');

$('#sel-sw-content-minibasefilter-field3452-comparetype').html('<li value="C" itemid="C" class="selected"> Contains </li> <li value="S" itemid="S"> Starts With </li>');

$('#sel-sw-content-minibasefilter-field3453-comparetype').html('<li value="C" itemid="C" class="selected"> Contains </li> <li value="S" itemid="S" >Starts with</li>');

});

</script>

Outcomes