Dynamic read more link not working in Chrome
<p>So I've been working on a new blog system for my website, which I'm eventually hoping to package as a free download. I have dynamic read more/less links that work perfectly in IE and Firefox, but not Chrome; the last browser in that list displays the entry without the fadeIn effect, doesn't hide the summary span and ignores the read less link.</p>

<p>Below is my code. I'm using jQuery 1.7.0. Thank you in advance, anyone who can give me the right answer will get a mentiogn in my blog. I appreciate your help :) </p>

<pre><code>&lt;script type="text/javascript"&gt;
function readMore(entNo)
{
    $("#entSum" + entNo).fadeOut(function()
    {
        $("#ent" + entNo).fadeIn();
    });

function readLess(entNo)
{
    $("#ent" + entNo).fadeOut(function()
    {
        $("#entSum" + entNo).fadeIn();
    });
}

function loadPage(startNo,endNo)
{
    $("#blogLoad").fadeOut(function()
    {
            $.ajax(
            {
                url: "getBlog.php",
                type: "GET",
                data: {start: startNo, end: endNo},
                success: function(data)
                {
                    $("#blogLoad").html(data);
                    $(".ent").hide();
                    $("#blogLoad").fadeIn();
                }
            });
    });
}

function facebookShare(id)
{
    window.open("http://www.facebook.com/sharer.php?u=http://jamesswright.co.uk/blog.php?id=" + id + "&amp;t=James S. Wright| Blog", "ShareOnFacebook", "width=600,height=400,scrollbars=yes,location=no,status=no,screenx=" + ((screen.width / 2) - 300) + ",screeny=" + ((screen.height / 2) - 200));

}

function twitterShare(id)
{
    window.open("http://twitter.com/share?url=http://jamesswright.co.uk/blog.php?id=" + id + "&amp;text=Cool blog from James Wright: &amp;via=JamesSWrightWeb", "Twitter", "width=600,height=400,scrollbars=yes, location=no, status=no, screenx=" + ((screen.width / 2) - 300) + ", screeny=" + ((screen.height / 2) - 200));

}
&lt;/script&gt;
&lt;?php

$start;
$end;

if($_GET["start"] == NULL) $start = 0;
else $start = $_GET["start"];

if($_GET["end"] == NULL) $end = 5;
else $end = $_GET["end"];


$connection = mysql_connect("localhost", "jamwri9_sql", "******");
if(!$connection) echo "&lt;p&gt;&lt;b&gt;Could not retrieve banner data: database connection failed";

mysql_select_db("jamwri9_sql", $connection);

$query;
$totalRows;
if($_GET["id"] == NULL)
{
    $query = mysql_query("SELECT ID, Title, Date, Entry FROM jswBlog ORDER BY ID DESC LIMIT " . $start . ", " . $end);
    $totalRows = mysql_num_rows(mysql_query("SELECT ID FROM jswBlog"));
}
else $query = mysql_query("SELECT Title, Date, Entry FROM jswBlog WHERE ID = " . $_GET["id"] . " ORDER BY ID");

$rows = mysql_num_rows($query);


$i = 0;
for($i; $i &lt; $rows; $i++)
{
    echo "&lt;p class=\"title\"&gt;". mysql_result($query, $i, 'Title') . "&lt;/p&gt;&lt;p&gt;Posted " . mysql_result($query, $i, 'Date') . "&lt;/p&gt;";
    if(strlen(mysql_result($query, $i, 'Entry')) &gt; 250 &amp;&amp; $_GET["id"] == NULL) echo "&lt;span id=\"entSum" . $i . "\"&gt;&lt;p&gt;" . substr(mysql_result($query, $i, 'Entry'), 0, 250) . "... | &lt;a href=\"javascript:void(0)\" onclick=\"readMore(" . $i . ")\"&gt;read more &gt;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/span&gt;&lt;span id=\"ent" . $i . "\" class=\"ent\"&gt;&lt;p&gt;" . mysql_result($query, $i, 'Entry') . " | &lt;a href=\"javascript:void(0)\" onclick=\"readLess(" . $i . ")\"&gt;&lt;&lt; read less&lt;/a&gt;&lt;/p&gt;&lt;/span&gt;";
    else echo "&lt;p&gt;" . mysql_result($query, $i, 'Entry') . "&lt;/p&gt;";
    echo "&lt;p&gt;Share: &lt;a href=\"javascript:void(0)\" onclick=\"facebookShare(" . mysql_result($query, $i, 'ID') . ")\"&gt;&lt;img src=\"img/facebook.png\" style=\"vertical-align: middle;\" /&gt;&lt;/a&gt; &lt;a href=\"javascript:void(0)\" onclick=\"twitterShare(" . mysql_result($query, $i, 'ID') . ")\"&gt;&lt;img src=\"img/twitter.png\" style=\"vertical-align: middle;\" /&gt;&lt;/a&gt; &lt;input type\"text\" value=\"http://jamesswright.co.uk/blog.php?id=" . mysql_result($query, $i, 'ID') . "\" /&gt;&lt;/p&gt;&lt;hr /&gt;";
}

if($_GET["id"] == NULL)
{
    echo "&lt;p&gt;Page: ";
    $pages = $totalRows / 5;
    $j = 0;
    $startNo = 0;
    $endNo = 5;
    for($j; $j &lt; $pages; $j++)
    {
        echo "&lt;a href=\"javascript:void(0)\" onclick=\"loadPage(" . $startNo . "," . $endNo . ")\"&gt;" . ($j + 1) . "&lt;/a&gt;";
        if($j &lt; $pages - 1) echo "|";
        $startNo += 5;
        $endNo += 5;
    }
    echo "&lt;/p&gt;";
}
else echo "&lt;a href=\"blog.php\"&gt;View all blog entries&lt;/a&gt;";
?&gt;
</code></pre>
