Solved

SharePoint 2007 - modify the "look" of a field

Posted on 2013-06-04
2
197 Views
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?

thanks.
0
Comment
Question by:sharepoint2013
2 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
Comment Utility
Hi,
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" />'); 
	});
</script>

Open in new window

HTH
Rainer
0
 

Author Closing Comment

by:sharepoint2013
Comment Utility
Thanks!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
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)

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now