I believe you need to narrow it down some more, or you are going to replace everything:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js "></script>
        <script type="text/javascript" charset="utf-8">
          $(document).ready(function() {
               $('#title').html('new text inseted by jQ');
          })
        </script>
        
        <style type="text/css" media="screen">
          p { margin: 0; padding: 0; }
        </style>
</head>

<body>
     <div>
          <p id="title">Some Title Text</p>
          <div>Add | Edit | Delete</div>
    </div>
</body>
</html>

--
Scott * If you contact me off list replace talklists@ with scott@ *

On Sep 26, 2009, at 4:18 PM, Dave Maharaj :: WidePixels.com wrote:

I have a div inside a div:

<div class="heading" id="some_id">Some Title Text
    <div class="manage_options">Add | Edit | Delete</div>
</div>

I simply want to change the "Some Title Text" and leave the Add Edit Delete
as is but my

<script type="text/javascript">
$(document).ready(function() {
$('.heading').html("My New Title");
})
</script>

Strips everything out, how can i select to only change the heading text?

Reply via email to