Changing the text style in Caf using Jscript

how to change background color of text input if no value is entered in the box while submitting the form


in the validation javascript, you can include following script to change the background of textInput

var sampleTextInputCtrl = CAF.model(’#{activePageBean.clientIds[‘sampleTextInputControl’]}’);“yellow”;

Hope this helps.

Raja sekhar Kintali

hi Raja,

thank u very much…