SharePoint 2007 - modify the "look" of a field

Posted on 2013-06-04
Last Modified: 2013-07-10
I have a field in a list named 'Category'

In the dispform.aspx to view the item..

I like the label 'Category' - that cell to be highlighted in yellow and with a star image in front of category

How I can do this?

Question by:sharepoint2013
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 44

Accepted Solution

Rainer Jeschor earned 500 total points
ID: 39225849
this code should do the change:
<script type="text/javascript" src="/_layouts/jslib/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function () {
		jQuery("a[name='SPBookmark_Category']").closest("td").css( "background-color", "yellow" );
		jQuery("a[name='SPBookmark_Category']").after('<img src="/_layouts/images/star.gif" />'); 

Open in new window


Author Closing Comment

ID: 39313415

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
need help with share buttons 11 75
Question regarding to $.ajax() with type "POST" vs $.post() 4 33
Popup write two lines 3 22
Diff of the day 2 11
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question