Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SharePoint 2007 - modify the "look" of a field

Posted on 2013-06-04
2
Medium Priority
?
247 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
[X]
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
2 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 2000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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…

618 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