Monday 4 January 2021

How to force Materialize autocomplete text to flow to new line?

I need duplicates in the suggested autocomplete. Why?
There might two people with the same name and surname. I am using Materialize and it does not offer that feature. I was thinking to add some extra text for example email or so to make it work the way I need. To make it look nicer I want the "extra" text be always on new line.

But I do not know how to do that. I tried <BR>, &#10; and \n but it did not work. Any idea how to make it work?

    data: {
        "Radek Surname - radeksurname@ymail.com": null,
        "Radek<BR> new line": null,
        "Radoslav": 'http://placehold.it/250x250'
    },

https://jsfiddle.net/radek/8e7kvf6r/17/

enter image description here

it looks like the BR tag was removed and is not in HTML source code anymore. See the picture.



from How to force Materialize autocomplete text to flow to new line?

No comments:

Post a Comment