PDA

View Full Version : CSS help?



nbailey
25 Nov 2008, 9:09 AM
I have looked all freaking morning for how to append an image to a textfield using CSS (we want to have an error icon/indicator for all of our textfields, and would prefer not to have to actually code each one).

CSS is _not_ my strong suit, and I have looked all damn morning for some pointers on how to get this to work. ANY help/pointers/tips/links would be GREATLY appreciated.

TIA

nb

mankz
25 Nov 2008, 2:16 PM
Check this (http://extjs.com/deploy/dev/examples/form/dynamic.html) example. Code is here (http://extjs.com/deploy/dev/examples/form/dynamic.js)

The line you're looking for is this:


// turn on validation errors beside the field globally
Ext.form.Field.prototype.msgTarget = 'side';


if I understood you correctly... Good luck!