how to change input border color with js

Solutions on MaxInterview for how to change input border color with js by the best coders in the world

showing results for - "how to change input border color with js"
Eloi
21 Jan 2020
1input:focus {
2	outline: none;
3  	border: 1px solid red;
4}
Marie
14 Oct 2020
1 var getColor = prompt("Choose your color ", "Enter the  color ");
2 var color;
3 var el = document.getElementById("color");
4 el.innerHTML = "Whatever paragraph message.";
5 if (getColor =="Yellow" || getColor =="yellow" || getColor =="YELLOW"){
6     color = "#FFFF66";
7     el.style.borderColor = color;
8 }
Malia
28 Oct 2020
1 
2.borders{
3    background-color:#00ffff;
4    border-color:#000000;
5    border-width:2px;
6    border-style:solid;
7}
Ewen
29 Jan 2020
1document.getElementById("fName").className = document.getElementById("fName").className + " error";  // this adds the error class
2
3document.getElementById("fName").className = document.getElementById("fName").className.replace(" error", ""); // this removes the error class
4
queries leading to this page
add border colorwith jsjs border color back to defaulthow to change the border color of input box when i click on itchange border color of div in htmlinput on focus change border colorinput box border color change when selectedinput field border color redchange input field border color javascriptred color around input field javascripthow to change element border color in javascriptcolor border in javascripthow to make outer border change color when click inputinputbox bordercolorchange outline input boarder colorinput onfocus change border color csscss input border color on focusinput text border colorjavascript bordercolorchange border color jschange border color of input field css on focusjavascript green border or red borderinput border colorchange border color using javascriptcss border color active inputjavascript border colorborder color css examplehow to set border color in cssinput field border red in javascriptinput field focus border colorhow to change css input focus border colorcs input border colorchange input border coloradd border color using javascripthow to change input filed click blue border colorhow to set input focus border colordocument get element by id borfer colorhtml change colour of borderjs how to change border colorinput border color javascripthow to apply border color in htmlborder color change on input focusjs border colorchange input border color when selectedhow to change the border color of input fields in css in node foucshow to set border colorstyle bordercolor javascriptborder color javascripthow to change the border color of input fields in css change inside border input color on clickhow to set color border form input before clickchange input selected borderhow to change input border color on click csschange border colors in javascriptborder color when we click the inputhtml set border colorset border color in jsset border color by javascriptchange input box border colorborder color css acceess on javascriptchange color on input bordercss input field colored borderset border color input javascriptborder color inputhow to change input border colorjavascript style bordercolorcss input selected border colorhow to color border of input type number jsset element border color jshtml javascript style border redhtml input on focus change border colorhow to change the border color of input box in htmlhow to change border color of an input on focuschange input border color cssmake text input border to green in javascriptbox input field red borderchange border color of input field css when requiredchange border of input field javascriptchange border of input when selected csshow to modify the color of input borderjavascript change border colorborder color in textbox htmlhow to color the boundary in htmlselect border blue css inputchange border color with inputchange input border color on clickhow to change input box border colorchange form selected border colorhtml add color changeing borderhow to test for border colour using javascriptstyle bordercolor jschange the border color of input fieldborder colors cssjavascript change div border colorreact js border colorcss input border colorbutton border color html propertieschange the border color javascriptjs change border color to redcss for change color of input control borderhow to change the border color of input fields in css without focuscss js border color inputchange the color of border on focus using jscss input text color borderhow to change input field borderr colorbordercolor dominput focus change border color on parrent divchange input border color onblur javascripthow we change the input border colorborder color in javascriptcreat border in csschange border for input when is selectedchange button border color javascriptchange input text border color jquery exampleset border colorhow to set input border colorhow to add color inside a border htmlchange inputdecoration border colorcss border color input change the border color based on time in htmlhtml javascript style border inputdiv border color javascriptinput field color border csscss outside curved border background colorborder color input csshow to change the color of the border javascripthow to change border color in css input change border color of input field cssstyle border color in javascript 5cjavascript style botder colorhow to color input borderset border color javascriptinput focus change div border colorchange border color from javascriptcss color input borderinput text change border color on selectedjavascript class border colorset div border colorhow to give onclick input border color changeset style by id javascript border colorchange the border color of an html element with jscss input design border colorjs make border colorchange border default color of input field csschange border color of input field javascriptstyle border color javascriptchange focus border color inputinput border color none cssjavascript set border color of inputchanching border color in css using javascripthtml element border colorchange border form html5how to change border color javascriptbordercolor htmlcolor border inputchanging input number border color javascripthtml textarea changing borderborder color javascript inputhow to change border color in javascriptinput type text onclick change border colorhtml edit div border coloradjust border color in htmlactive input box border colorinput on selecton border color cangehow to change border color in jsapplying border colorchange div border color javascriptcss change input border colorselect field border colorinput css border colorhow to design border color in input field js button border colorhow to have color changeing bordar htmlhow to change color of input bordercss style input border colorchange input border color on activeapply border color via javascriptjs set border colorhtml change input outline colorjs change border colorchange html border color with jsi want to add border color when user didn 27t select date field in html and jqueryhow to chnage border colour jsinput box border background colordifferent border color inputgive different different border color to html dynamicalycurrent color in border cssborder with color tag in htmlchange outline color inputjs make input border redhtml input default border colorelement style border colorinput border color on focusadd border color with jshow to change input box border color when texthow to change border color of input filedinput selected border colorchange border color when click inputhow to put color border in htmlstyle border color javascriptchanging input type number border color in formcss change input border color on focusinput type name checked border color reddom bordercolorjs border colorchange border color focus inputhow to change input border color after clickchanging the border of an html objectchange input type border color js change element style border colorchange color of the border of the input when clicked in ithow tochange border color jsall form input border colorhow to color the background in reactclick input type input border color change csshow to change color of black input border in jqueryoutline input border colorhow to change input field border colortext input layout border color changechange blue border inputcannot change the border color of the input fieldset textfield border colorhow to add text field border color in javascriptchange the color of the border in jscss change border color of active input text box css 28 22border color 22 dom stylebchange border color javascriptchanging border color jsget a content in a tag with particular border color jshow to change border color of on input if the value is false cssinput box border color when activehow to change input border color with jsinput border color red jschange color of border from inputhow to make a border dyanmic color in html javascript border colorchange boder color for inputinput type border colorchange input outline color csshow to change border color of input field onclick cssborder color of input box htmlinput border color csshow to get border color in htmlborder color on javascriptcss how to change border color in javascriptcss input border color on clickhtml bordercolorinput 3afocus change border coloechange input box border color once filledadding border color with javascripthow to change border color of on input if the value is falseinput field border color changecustom input border color csshow to set color on border redius in javascriptchange input outline colorjavascript change border color of inputchange border color in javascripthow to change border colour in htmlbordercolor in jschange border color in jsthis bordercolorchange input border color red with javascriptdom style border colorchange textbox border color in javascripthtml change colour of border 3d 22 22change border color javascriptstyle bordercolor jshow to change input box border color in cssset focus color css css 28 22border color 22 dom csschange input border color on focuselement style border jshow to change input border color on focuschange border color in jshow to set border color using javascriptcss border color for input htmlfor input change border color on clickhow to override bordercolor input field when on focusinput focus border color changechange field boder color on focus html inputmake input border color changed jsjs style border colorinput focus input border color changediv tag border color in htmlchange border color with javascriptinput field border color cssafter click input border color change csswhen i click on input i want the border color to be changed htmlshow 5bi 5d style bordercolor 3d 22red 22 3bjavascript set element border colorborder color change on active inputdiv border color css using javascriptchange border color of input when cliecktable border and color using javascriptborder color for paragraph in htmlhow to chnage border color by dom element in jscolor input no border html 3cstyle 3e border color tagdiv border css color in r programmingmake a border of input field red jshtml change form border colorhow to change border color of input box in htmlhow to change border colour in javascriptwhen i click for the input change border colorapply border color in jsblue color border inside input field in htmlcss set border colorhow to add a colorful border in htmlborder reduce input color picker csscolor border input csshow to add style border color in javascriptbordercolor javascriptchange textformfiled on selected border colorjavascript set border colorjavascript border change colorjavascript style border colorhow to change the outline color of an input when it is selected in cssdom for border colorjs change textbox border colorset border color of input box darkcss change input field selected borderchange bordercolor of element jschange button border color dom javascriptborder color for input box in htmlcss input select border colorhow to add a border to input color in csshow to change border color with javascriptjavascript css border colorhow to change border color of element in javascriptinput border color after clickhow to change input border color cssborder color when active html inputborder color on selecting an input taghow to change border color of input box in javascriptinput border color when selectedhow to fix the boundary of a colour in htmlcss border solid border colorinput border color on clickhow to set border color in javascriptborder color javascriptjavascript change input border colorborder color input htmlhow to change the border color of html tag by java scritborder color in jshow to set border with color and with in cssjavascript add border colorjs change border color of a divhow to change border color of input field in csshow to add border color to input while activechange bordercolor javascriptinput type color border nonehow to change the color of a border in htmladd border color by javascripthow to change the input box border colorinput text box border colourchane h 3ainputtext border color in jsfhow to change input focus border colorhow to change input filed click border colorhow to style default textarea outline cssstyle border colorhow to make my input border change color whenjava script border colorjs dom style border colorset border color csshow to put border color in htmlstyle input with no background color or borderchange input border color on focus csshow to change input outline colorcsss for form input border colorafter input data change border colorcss input active border colorborder color using change dom css 28 22border color 22 domhow to change border color of input when writinghow change color border input when on focusstyle border color javascriptstyle border color with javascriptinput click border color cssborder color jsdefault border color input type textjavascript div border colorhow to change border color when selected htmlborder color change in htmlchange border color of input boxchange border color text fieldhtml input text focus change border colorjs css border colorhow to change border colors in htmlhow to change the textbox border color when inputing textcss change form input border colorinput change border color on focuscss user select input border colorhow to give colored borders to an html element using javascriptchenge prame color jsinput field border color on focusbordercolor through javascripthow to add border color to form in htmlhow to make input border become red with jshow to give bordercolor cssinput onclick change border colorchange border color when input is clicked htmlchange border color input cssinput box border color cssadd border color in jsjs change element border colorhow to change the border color of an input htmlcss input border color erorchange color border when input is clicka blue border colliehtml change border colorchange border color on element javascripthtml range border colorwhen input is typed change the border colorjavascript change element border colorjavascript border colourhtml details change border colorhow to change outline colour in jschange input border color in validation with javascriptchange border color css javascriptborder color in jshtml input border colorborder color red in javascriptinput field color border change on clickjquery select border colorinput border color htmlhow to set boarder of input colorhow to change border color of text input when clickedinput box border background color nonehow to add border color in javascriptchange form input focus border colorchange border color of element jschange color input form border activechange border highlight color on an input text elementinput feild border colorhow to make input field border redchange input box border color on focusborder color using javascripthow to chnageright border colour jschange border color of input field for required in htmlhtml add border colorchange birder color javascriptset border as rounded in style htmlchange color border inputmake a border of input field red javascriptchange border color of input field css on clickinput border color changeinput color borderchange border coloris it possible to style four different colours in a bordercss change border color inputjavascript setattribute border colormapbordercolor javascripthow to change boarder color on a div in htmlchange border color of input on focusbordercolor jscss font border no fillhow to change border color in htmlhow to add dotted spots on full border circle css jsjs edit border colorcss border color javascriptnew way to write border color cssjavascript change css border colorhow to give border colorchange th color of input border on focustext field active border colourhow to set border color cssjot form how to change the focus input border colorset css border color using javascripthow to give input bordercolorinput click border colorset red border javascriptchange border for selected inputgive the input border a colorjs bordercolorset solid border style htmlhow to turn border color dom javascriptjavascript border color changejs set border left colorhow to change color of outline of input tagborder and background color text form fieldhow to chenge input border color cssset border color in javascriptjquery change border color yellow green completejavascript element style border colorcolor is setting border color as well text inputchange textbox border color html csshow to change html border colorhow to change border color with javascripthow to change input border color with js