Question: Ok - so I've made a little image gallery - basically when you click a thumbnail, it pulls in the title from the alt tag - puts it in a div to display below the image as the title, and displays the image as a fullscreen bg

What I'm trying to do is have this title display when the page loads - and when you click, remove the existing value and replace it with the new one

Currently the title isn't displaying on page load, when you click it - it shows the title as desired, but when you click another image it doesn't remove this title

Heres my existing code

```
    <ul id="horses">
                <li><a class="clicker" rel="drawings-bg"><img src="/assets/img/portfolio/horse.jpg" alt="horse" /></a></li>
                <li><a class="clicker" rel="contact-bg"><img src="/assets/img/portfolio/dogs.jpg" alt="dogs" /></a></li>
                <li><a class="clicker" rel="drawings-bg"><img src="/assets/img/portfolio/horse.jpg" alt="horse" /></a></li>
    </ul>

```

Jquery

```
     $(document).ready(function() {
    var imginfo = $('.imgtitle');
$("ul#horses li img").click(function() {
      if(imginfo)  $(imginfo).siblings('.imgtitle').remove();
$(this).parent().append("<div class=imgtitle>" + $(this).attr("alt") + "</div>");
     });
});

```

Thanks in advance

Answer: 
The kind of disassembly that the author shows in the article is called `inter-leaved disassembly` ( C and disassembly interleaved ) which a few IDEs like Visual Studio support. Code Blocks does not support. But Code Blocks has a separate disassembly window like this

![Diassembly Window](https://i.stack.imgur.com/LdIaZ.png)

Select a source line. Right Click. Say `Run to Cursor`. Now `Debug->Debugging Windows->Disassembly`. Instead of Run to cursor you can also set break points and then do this. But somehow it wasn't going well with mine, so I am suggesting `Run to Cursor` method.

Hope it helps.
This is a new answer to an old post. The other answer is completely on topic, but makes one outdated statement: *"Code Blocks* ***does not support***\_",... *inter-leaved disassembly ( C and disassembly interleaved )*.

This is no longer true. Newer versions of Code::Blocks have updated that feature.

Using Code::Blocks version 17.12 with gcc (tdm-1) version 5.1.0 and the OP code

And following the instructions:

* In the `Code::Blocks` editor, right-click on the line of interest in the source file, and from the resulting context menu select `Run to cursor`. For this illustration the closing bracket `}` for the main function was right clicked.
* Then, from title bar menu select `Debug->Debugging Windows->Disassembly`. This results in a popup showing assembly interleaved with source code:
* This results in the following image clearly showing that the C source and assembly code are interleaved:

[![enter image description here](https://i.stack.imgur.com/4nUro.jpg)](https://i.stack.imgur.com/4nUro.jpg)