Use a JavaScript Function to Change Background Color with Input Textbox or Color Picker

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии • 33

  • @daJungmann
    @daJungmann 4 года назад +2

    Thank you so much! Best 6 minutes I've invested (apart from looking at not working ones) ^^

  • @salman-asghar
    @salman-asghar 3 года назад

    wow, God bless You, bro .......
    You have done an important work with very simple method... Thanks a lot.

  • @JRiver000
    @JRiver000 2 года назад

    Genuinely amazing saved my school project

  • @napboy81
    @napboy81 4 года назад +2

    This is very well explain. Thanks so much

  • @khalidQweder
    @khalidQweder 5 лет назад +12

    This is a golden six minutes.

  • @AR-le3ow
    @AR-le3ow 4 года назад +3

    idk why its not working for me any tips
    although u explained it very well

  • @milliydevuz
    @milliydevuz 2 года назад

    thanks bro ijodinga qotag'm

  • @IAmADreamerish
    @IAmADreamerish 2 года назад

    hi can i chnage the text color with color picker and set it onchange ? like change the color and preview it realtime without clicking the button

  • @alial-nuaimi2695
    @alial-nuaimi2695 3 года назад

    King of six min , dude please keep it up and you are given small tutorial during your vid which give it higher value than normal videos

  • @MrMegazob
    @MrMegazob 2 года назад

    Thanks a lot for your video !!! But i've got one question, how can i save this new color (maybe an hidden properties) ? because if i refresh my browser, i'll loose this color. Thanks for your answer :)

  • @norfside5144
    @norfside5144 3 года назад

    you sir are cool, this was helpful

  • @ssanthosh8574
    @ssanthosh8574 4 года назад

    I am only looking for this thank you bro..

  • @DrAshkawa
    @DrAshkawa 3 года назад

    how about creating a button that resetting to the original color?

  • @polcat646
    @polcat646 3 года назад

    thanks a lot 🙏🙏🙏🙏🙏🙏

  • @vp351
    @vp351 2 года назад

    what if i want to change color of a div ?

  • @mohammadusmanshahzad3688
    @mohammadusmanshahzad3688 2 года назад +1

    Bro I Copied the same exact code it does not work the Change button does not change the color

  • @lorenzmiguealgracia6353
    @lorenzmiguealgracia6353 2 года назад

    how to make color static after a refresh?

  • @gowthamthangavel
    @gowthamthangavel 3 года назад

    hi bro, how to assign color to text using color pickr.. kindly reply

  • @daariidashi7311
    @daariidashi7311 3 года назад

    if u want user to input color by text but the value repeats or the entered value is not color what to do?

    • @SixMinutesSmarter
      @SixMinutesSmarter  3 года назад +1

      by text is likely not the best way to go, but a good beginner exercise for getting user input. You can use regex or some text methods to look at a typed hex code and make sure it has the correct number of characters that only use 0-9 or A-F.

    • @Miles-co5xm
      @Miles-co5xm 3 года назад

      @@SixMinutesSmarter xssable

  • @johnromanov
    @johnromanov 2 года назад

    Thanks a lot!

  • @crazyylife
    @crazyylife 5 лет назад

    Nice video sir

  • @jacktailor3490
    @jacktailor3490 4 года назад

    yea straight and precise ....

  • @MiguelReyesDeveloper
    @MiguelReyesDeveloper 4 года назад

    Wonderful

  • @ananyarastogi3236
    @ananyarastogi3236 3 года назад

    Thank you sir

  • @amitmaimon615
    @amitmaimon615 4 года назад

    a god man thank you!

  • @jyotisafare7858
    @jyotisafare7858 4 года назад

    I like this video

  • @aniketdere1357
    @aniketdere1357 4 года назад

    provide your source code sir.

  • @athleticsdogslovers3210
    @athleticsdogslovers3210 3 года назад

    Gold.

  • @Miles-co5xm
    @Miles-co5xm 3 года назад

    highly xss vulnerable

    • @SixMinutesSmarter
      @SixMinutesSmarter  3 года назад

      yes, those inputs require some extra filtering. Check out ruclips.net/video/ns1LX6mEvyM/видео.html from Web Dev Simplified for a nice explanation and some extra steps you can/should take.

  • @patrickbroaden9820
    @patrickbroaden9820 3 года назад

    NOW THIS IS A CODING VIDEO.........🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊🥊