Hi,

i'm trying to make a textarea (WYSIWYG Text Editor) where i write a text and i can mention people from the Database.

so i found this website and it is excellent for what i want to do but how do i add a link to the person i mention? By link i mean a anchor tag.

Here's the website: http://podio.github.io/jquery-mentions-input/

Thank you for your help,
PF2G

Member Avatar for LastMitch

so i found this website and it is excellent for what i want to do but how do i add a link to the person i mention? By link i mean a anchor tag.

Since you are using the code from the link why can't you post this question here:

https://github.com/podio/jquery-mentions-input/issues

or email the author. He's the one who wrote the code.

This is a example of an archor tag:

<a href="#" class="bar" rel="0"></a>

This is how you select the tag:

$('a.bar[rel="0"]');

Does that make sense?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.