当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - customize choosing a tag feature

问题描述:

So I have an app user can create a tag, and choose a tag to post their stories. Everything works fine, but I want to change the way user choosing a tag to post stories. Right now, user has to scroll through the tag they want(more tags created, more scrolls user has to do)

What I'm trying to do is to display, some main tags I make to be inside box and user to be able click the tag that the tag to be chosen. It would be nice to make a search engine that user can type and the tag to be shown up that user can pick....but this seems too advanced for me now. (if you know how, please let me know)

the above is what I hope mine to be replaced to.

I'm not even sure which code I should touch to make this happen.

views.py?forms.py? or is this javascript?html file?

网友答案:

I think you are searching for Select2, there is a django package called django-select2

分享给朋友:
您可能感兴趣的文章:
随机阅读: