Strange Responses

Strange Responses

Hi:



Code:

When I run this from website it fails and the source of the page shows this code bloc as below

<script type="text/javascript">   

    $("#tenantTable tbody tr").live('click', function (event)
    {
            $(".selected").removeClass('selected');
            $(this).addClass('selected');
    });

</script>


----------------------------------------------
From source

-<script type="text/javascript">   

    1926 1926 32008"#tenantTable tbody tr").live('click', function (event)
    {
            1926 1926 32008".selected").removeClass('selected');
            1926 1926 32008this).addClass('selected');
    });
</script>

If I copy the source, paste into editor and replace the screwed up block with the correct code, it works fine.

<script type="text/javascript">   

    $("#tenantTable tbody tr").live('click', function (event)
    {
            $(".selected").removeClass('selected');
            $(this).addClass('selected');
    });

</script>

Any insight as to what is going on appreciated.