jquery .CSS trouble
Posted by schuess - Jan 23 ’14 at 03:14
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");
-
schuessMemberMember for: 9 years 4 months 15 days
Well i guess i could assign it a specific class in the UI designer and then set the CSS as found here... http://forum.spform.com/forms-designer-for-sharepoint-20/css-styling-for-individual-fields-8089/
but i am still curious what i was doing wrong
-
Dmitry KozlovAdminMember for: 9 years 8 months 16 days
[#1]: Please, assign CSS class to your field in Forms Designer (my-field in this example) and define it in CSS-editor following way:
.my-field textarea { width: 400px !important; }
-
peter0900MemberMember for: 6 months 29 days
The jQuery file may be missing or improperly included in your HTML code if jQuery scripts on your Web server fail to function.
Available here https://flooringcontractorusa.com/ Flooring Contractors USA