Комментарии:
Is it possible to add this script to Codepen? Your kodhus link does not work anymore?
ОтветитьVery well explained
ОтветитьNice tutorial. Thanks. But your way to prepend tags is rather complicated. Instead of rebuilding the whole tag container you can simply use insertBefore() to insert the tag right before the tag input field. You also might consider to replace the quite complicated de- and reconstruction of the tag array by simply removing a tag with tags.splice(idx, 1).
ОтветитьCan I use this inside the form? To use tags as input.
ОтветитьEXCELLENT!
ОтветитьI'd rather use innerText instead of innerHTML to assign "label" to "span" for security reasons. Excellent video though.
ОтветитьPlease if I don't want to input empty tag how will I do it. Please I need quick answer @frontendTips
ОтветитьThankyou buddy
Ответитьhow will limit the number of tags and character limit
ОтветитьDaym, not exavtly what I was looking for, but after some tweaks I got it working the way I need. Thanks, playboy
ОтветитьThank you for the tutorial brother
ОтветитьCan we use splice() method to delete the element?
ОтветитьHow to limit the tags to only 3
ОтветитьThanks, man! You are greate!
Ответитьthank you!!! I've been searching this for days
Ответитьthe best front end tutorials ever
Ответитьthank you! good job
ОтветитьAmazing explanation. Thanks man
ОтветитьDo you use OBS to record Screen ?
ОтветитьCan't imagine how much work you've saved me! Legend <3
ОтветитьThank you, excellent tutorial
ОтветитьWhat if someone tries to add 'css' tag two more times, so what will happen in this case when we click remove button?
Ответитьthanks u
Ответитьnow this is what i'm lookin' for.. straight to the point! amazing! thanks for the help :D
Ответитьawesome video sir. I really surprised. Thanks for your video. sir, I want to learn advanced js. But how?
ОтветитьNice video. I had some remarkes / suggestions - you certainly can set the attribute "class", but why not just use the direct attribute className instead of using setAtrribute('class')? Similarity, data-* attributes map to dataSet automatically. Why do you need to keep track of your tags into a seperate array - the DOM itself is an array! If you want to know the state of your tags, just call querySelector('.tags') and wham bam you got it your array. Similarily, the use of your clear() and the prepend() structures is cringe worthy and won't scale in general. All you really want to do is the Node.insertBefore() function. Finally, don't be afraid to use the "this" value when you are dealing with events, all you need is <i ... onclick="this.parentNode.removeChild(this); ..."> easy peasy.
Ответитьhow to add limit tag number. please help me
Ответитьthxxxxxxxxxxxxxxxxxx
Ответитьgreat idea
ОтветитьGreat job. I'm an experienced developer a I learned quite a bit.
ОтветитьGood tutorial bro
ОтветитьBrilliant tutorial love it. Quick question though, if I wanted to use the 'tags' variable within a POST request how would I select it? Thank you
ОтветитьVery useful tutorial, thank you! I do have a few questions b/c javascript is not my strongest skill:
1. Is it possible to prevent the enter/return key from adding empty tags?
2. How would you add a button to also add the tag?
3. Is it possible to have tags listed alphabetically?
fuck u and thank
ОтветитьThank you so much!! :))
ОтветитьGreat video thank you so much!
ОтветитьOne of the best tutorials I've ever seen. Surprising that there are so few views.
ОтветитьIt's a great tutorial! Very simple and clean. Waiting a new videos.
ОтветитьYour videos deserve alot more views.
ОтветитьThis tutorial is very handy you know... Great!
ОтветитьI’m glad you made this tutorial!!! Thanks man!!!!
Ответить