Change background of current field:
example.css
input:focus { background: yellow }
input:focus:hover { background: LightYellow }

Hide/Show fields with Radiobutton selection:

 OnClick=”{ElementID.style.visibility = ‘visible’;ElementID2.style.visibility = ‘hidden’}”

Automatically move to next field on certainlength:
example.aspx
< input ID=”txtF1″ onKeyPress=”{if ( document.form1.txtF1.value.length == 5 ) { document.form1.txtETF2.focus();}}”>
< input ID =”txtF2″ onKeyPress=”{if ( document.form1.txtF2.value.length == 3 ){ document.form1.txtF3.focus();}}”>
< input ID=”txtF3″ >

(onKeyPress,onChange, onClick)

Colour Names

Advertisements