Select Error if option include html tag


Topic: Select Error if option include html tag

engineer_yasin premium asked 5 years ago

Expected behaviorenter image description hereActual behavior

Why when an item is selected, an error occurs and does not display anything in the input! Resources (screenshots, code snippets etc.)

<select id="Sick" name="Sick" class="mdb-select required md-form md-outline mt-3 text-right initialized" searchable="جستجو ..." data-copy-classes-option="true" data-stop-refresh="true"><option value="2"><i class="fas  fa-user  text-success mr-5"></i>  یاسین عباسی <i class="fas fa-id-card  text-success mr-5"></i> 5279887641  <i class="fas fa-users text-success mr-5"></i>  سرپرست</option><option value="13"><i class="fas  fa-user  text-success mr-5"></i>  محبوبه امیری <i class="fas fa-id-card  text-success mr-5"></i> 5297988673  <i class="fas fa-users text-success mr-5"></i>  همسر</option><option value="10"><i class="fas  fa-user  text-success mr-5"></i>  سامیار عباسی <i class="fas fa-id-card  text-success mr-5"></i> 5279887642  <i class="fas fa-users text-success mr-5"></i>  فرزند</option></select>

enter image description here


engineer_yasin premium commented 5 years ago

mdb pro version 4-11


Grzegorz Bujański staff commented 5 years ago

Hi. Your code is work fine for me. I need more info. Try to create a snippet here: https://mdbootstrap.com/snippets in such a way that the error is visible


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.10.1
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No