Page 1 of 1

jquery .CSS trouble

Posted: 23 Jan 2014
by schuess
I wanted to change the styling of a specific field using jquery. I thought it would go something like this... but nope.


//Increase size of Comments Box

fd.field('commentsSpecReq').control().css("width", "400px");

OR


$('.fd_field[fd_name="commentsSpecReq"]').css("width", "400px");

Re: jquery .CSS trouble

Posted: 24 Jan 2014
by schuess
Well i guess i could assign it a specific class in the UI designer and then set the CSS as found here...
viewtopic.php?f=1&t=40

but i am still curious what i was doing wrong

Re: jquery .CSS trouble

Posted: 24 Jan 2014
by Dmitry Kozlov
Please, assign CSS class to your field in Forms Designer (my-field in this example) and define it in CSS-editor following way:

Code: Select all

.my-field textarea {
	width: 400px !important;
}