remove a PART of an Anchor Text with jquery or javascript
<p>I'm trying to remove or change a <strong>Part</strong> of an anchor text.</p>

<p>My Anchor look like this:</p>

<pre><code>&lt;a href="http://something.com"&gt;Model 1234 motorbike&lt;/a&gt;
</code></pre>

<p>I would like to remove the "motorbike" part of the anchor text, to end up with:</p>

<pre><code>&lt;a href="http://something.com"&gt;Model 1234&lt;/a&gt;
</code></pre>

<p>Anyone know how to do this?</p>

<p>Thanks</p>

<p><strong>update:</strong></p>

<p>The anchor links are coming from a different website. So I can't control the html. I'm simply trying to remove the "motorbike" part from the anchors sent, so it doesn't show up 100 times on my webpage.</p>

<p>@Shiv Kumar: yes, "motorbike" is always the last part of the anchor text. @Phrogz: the script is sending the available models to my site. The last part of the anchor text is always "motorbike", the first part changes: model 1234, type 4321 etc.</p>

<p>But I will give the codes a try first.</p>

<p>Thanks everyone for the quick replies.</p>

<p>Much appreciated.</p>

<p>Erik</p>
