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 4023526
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:36:32+00:00 2026-05-20T10:36:32+00:00

I would like to get the url from <div class=ms-vb itx> and replace it

  • 0

I would like to get the url from <div class="ms-vb itx"> and replace it into a href within a span below.
Would that be doable in Jquery?
does that make sense?

<td height="100%" class="ms-vb-title ms-vb-lastCell" onmouseover="OnChildItem(this)">
<div eventtype="" perm="0x7fffffffffffffff" field="LinkTitle" id="5" ctxname="ctx6" onmouseover="OnItem(this)" class="ms-vb itx">
<a target="_self" onclick="EditLink2(this,6);return false;" href="/_layouts/RF.Portal.Web/DetailActualite.aspx?4&amp;ListId={5B770E71-5269-4F45-87A0-2DEFA1136E40}&amp;ID=5&amp;ContentTypeID=0x0100FBEA8B5F8E1448F4B48C33A18522E2DA01001677EA3C9B9802408D15440E3B1906DE" onfocus="OnLink(this)">icitait l'honneur d'être reçu,</a>
<img class="ms-newgif" title="Nouveau" alt="Nouveau" src="/_layouts/1036/images/new.gif">
</div>
<div onmouseover="OnChildItem(this.parentNode); return false;" class="s4-ctx" style="top: 52px; left: 1015px; height: 105px; line-height: 105px; margin: 0px;">
<span>&nbsp;</span>
<a title="Menu Ouvrir" href="javascript:;" onclick="PopMenuFromChevron(event); return false;" onfocus="OnChildItem(this.parentNode.parentNode); return false;">
<img style="visibility: hidden;" src="/_layouts/images/ecbarw.png" alt="Menu Ouvrir"></a>
<span>&nbsp;
</span>
</div>
<span style="color: rgb(128, 128, 128);"><em>
          Publié le 07/03/2011 11:30 -
          En cours</em></span><br> et ayant nom Athos, Porthos et Aramis.   Nous l'avouons, ces trois noms étrange<br><br>
          <span style="font-size: 0.9em; color: rgb(128, 128, 128);" id="lireArticle">
          <a class="rfr-link-action" href="DispForm.aspx?ID=5">Lire l'article</a>
        <br><br></span>
        </td>
  • 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-05-20T10:36:33+00:00Added an answer on May 20, 2026 at 10:36 am

    Sure, you just have to make sure that you select the right elements.

    E.g.:

    var $div = $('div.ms-vb.itx');
    $div.next('span').find('a').attr('href', $div.find('a').attr('href'));
    

    If you have more elements with these classes and you want to perform this for every of them, you can use each():

    $('div.ms-vb.itx').each(function() {
        $(this).next('span').find('a').attr('href', $(this).find('a').attr('href'));
    });
    

    Update:

    Ok, I assume you have several of these divs inside your table and you want to do this for all of them.

    The a element you want to change seems to have a class rfr-link-action, so you can make use of this. Note, although your span element has an ID, IDs have to be unique in the document. No two elements can have the same ID.

    $('div.ms-vb.itx').each(function() {
        $(this).closest('td') // gets a reference to the table cell
        .find('a.rfr-link-action') // finds the link
        .attr('href', $(this).find('a').attr('href')); // sets the URL
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like a way to get individual anchor vars from a url and
I would like to get data from from different webpages such as addresses of
I would like to add a class(ex) on landing or similarly through jQuery. from
I am calling a page that returns data like: <div id=class> <option>Value</option> <option>Value</option> </div>
Would like to get a list of advantages and disadvantages of using Stored Procedures.
I would like to get up-to-date information on Google's index of a website, and
I would like to get the path to the execution directory of a Windows
I would like to get the absolute position of an element in relation to
I would like to get a list of the wireless networks available. Ideally this
I would like to get all the instances of an object of a certain

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.