0

I need help,

here is my view

  <div class="hash_field">
     <label for="category_id">Service Hashtags <span class="asterisk">*</span></label>
     <input type="text" name="hashtags[]" value="{{ json_encode(old('hashtags'))}}" id="magicsuggest"/>
  </div>

and the magicsuggest script,

<link href="{{ url('plugins/suggestionbox/magicsuggest-min.css') }}" rel="stylesheet">
<script type="text/javascript">
    $(function() {
        var ms = $('#magicsuggest').magicSuggest({
            data: '{{route("services.get_array")}}',
            valueField: 'hashtag',
            displayField: 'hashtag',
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            hideTrigger: true,
            placeholder: 'Service Hashtags',
            noSuggestionText: '',
            maxSelection: null,
            required: true
        });
    });
</script>

here my issue is, All is working good but i need to get one more functionality i need plugin to have case-insensitivity. Means that if i add tag like admin Then the plugin should disallow me to add Admin,ADMIN,AdMiN All the possibilities.

enter image description here

I hope you understand what i want to say. Thanks in Advance.

This plugin I had used Magic Suggest

Ritesh Khatri
  • 1,253
  • 13
  • 29

0 Answers0