Solved

SharePoint 2007 - modify the "look" of a field

Posted on 2013-06-04
2
217 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
ID: 39225849
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
ID: 39313415
Thanks!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to dynamically set the form action using jQuery.
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…

773 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