$.get('/index/39-2', function(mod){ var testmods = $('cmd[p="content"]', mod); testmods.appendTo("#testMod") });