Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7884221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:44:26+00:00 2026-06-03T04:44:26+00:00

I have a Sharepoint site that is dynamically grabbing a name and description from

  • 0

I have a Sharepoint site that is dynamically grabbing a name and description from a list.

var name = $(this).attr('ows_Title');  //This is the internal storage name in SP
var comments = $(this).attr('ows_MetaInfo').match(/^_Comments:SW\|(.*)$/m);

I am then taking these vars and feeding them into an empty div on my page (the div is called ‘docList’)

        var item = "<a class='docLinks' href='http:path/to/the/doc/" + name + "'>" 
+ title + "</a><br><p><span class='description' id='para_" + i + "'>"
    + comments + "</span></p><br>";
        $('#docList').append(item);

I am trying to make it so the ‘comments’ i.e. description of the item, appear on hover below the name of the item.

I have tried various iterations on this theme:

     $('#docList a').hover(function(){
          $(this).child().css({'display':'block'})},
          function(){
              $(this).child().css({'display':'none'});
         });

I know that I can access the hover event, because I coded in some simple alerts, and they were fine.

Originally, I tried giving each ‘comments’ its ownid (as you can see), but got tripped up in getting the index value. I then decided to try to do this using

      $(this).children('.description').css({'display':'block'});

But no luck. Am I close? Where am I screwing up the syntax?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:44:28+00:00Added an answer on June 3, 2026 at 4:44 am
    $(this).nextUntil('p').next().find('.description').hide()
    
    $(this).nextUntil('p').next().find('.description').show()
    

    and you don’t need id for this

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have items in a list in a SharePoint 2003 site that I need
We have a SharePoint Team Site (WSS 3.0 not MOSS), that includes Tasks list
In my SharePoint site I have a list wich has a column that contains
I'm building a new Intranet Portal with SharePoint 2007 that will have News, Site
I have a sharepoint site that has an excel spreadsheet that I need to
Currently I have a few lists in my SharePoint site that has been hidden
I have a Silverlight Application, that uploads file(s) to a Sharepoint Site. I got
I have a Sharepoint 2007 site that is displaying the old/original title in the
I have a Sharepoint discussion list that belongs to an Exchange list with the
I have written a web service that connects to a sharepoint site. What is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.