function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<!-- Page: --> <apex:page standardController="Account"> <style> .bPageBlock{ background: yellow !important; } </style> <apex:form > <apex:pageBlock title="My Contenta " mode="edit"> <apex:pageBlockButtons > <apex:commandButton action="{!save}" value="Save"/> </apex:pageBlockButtons> <apex:pageBlockSection title="My Content Section " columns="2"> <apex:inputField value="{!account.name}"/> <apex:inputField value="{!account.site}"/> <apex:inputField value="{!account.type}"/> <apex:inputField value="{!account.accountNumber}"/> </apex:pageBlockSection> </apex:pageBlock> </apex:form> </apex:page>
<apex:page standardController="Contact"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script> <script> $(document).ready(function(){ $(".bPageBlock").css("background-color","antiquewhite"); $(".bPageBlock").css("border-color","antiquewhite"); }); </script> <apex:pageBlock> <apex:pageBlockSection > HELLO MY Background Color HAS CHANGED </apex:pageBlockSection> </apex:pageBlock> </apex:page>
Let us know if it helps you, and kindly mark it best answer it this answer helps you so it make proper solution for others in future
thanks
All Answers
Please try in this way to change color of pageBlock .
Hope it will be helpful for you, please marks this as best if it really helps you.
Regards
Suraj
Let us know if it helps you, and kindly mark it best answer it this answer helps you so it make proper solution for others in future
thanks