I don't quite understand your question... if you want to play with the response text in the callback, you can add an argument to it:
- $(ul#name).load('hello.php?val=0",function(responseText){
- // use responseText here
However, doing it this way, the original will be inserted into the document, so you can't change it.
If you want to change it before it gets inserted, you can use $.get instead:
- var name = $(ul#name);
- $.get('hello.php?val=0", function (responseText) {
- // do something to responseText
- name.html(responseText);