Hi everybody - new to both this group and jQuery, so please be
gentle ;)

I have some code which roughly looks something like this:

$(".container ul > li > a").click(
        // only do the JSON if the a isn't followed by a DL
        if(!($(this).next("dl").length)){
                $.getJSON("json.js", function(data){
                        htmlString = "<dl><dt>Results:</dt><dd>Output: " + 
data.title + ",
Input: " + data.name + "</dd>;
                });
        )
)

Now, what I want to do is put htmlString after the a-object - $(this)
- , but obviously I am out of scope, so I can't just add it like this

$(this).after(htmlString)

Any suggestions on how I can do this?

Reply via email to