Getting Form Input with Javascript or jQuery for Background Color Manipulation -


How can I get real-time forms and use them to change the background color of the elements?

I have an input field which will accept six digits hex value:

   

Thanks in advance - B

It should: < / P>

  update the function () {Var len = $ ('# acct-bcolor'). Val (). Match (/ [0- 9AF] {1} / ig). Length; If (lane == 3 || lan == 6) $ ('body'). CSS ('background-color', '#' + $ ('# acct-b color'). Val ()); } UpdateColor (); Run once on page load $ ('# acct-bicoler') Bind ('Focus', function () {$ (this) .bind ('keyboard', update collar);}). Bind ('blur.bgcolor', function () {$ (this). Unbound ('keyp');});  


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -