?
Solved

SharePoint 2007 - modify the "look" of a field

Posted on 2013-06-04
2
Medium Priority
?
242 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
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)
Suggested Courses

770 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