If I use this script: var str = "<h1>xToDo - Gestire progetti con AJAX</h1>Attualmente ci sono <b></b> progetti e <b></b> task inseriti nell'applicazione.<br/ >";
var context = $(str) $('b:eq(0)', context).html("example"); I'll get this error: ret[i].getElementsByTagName is not a function ( jquery.js (line 1429) ) with this StackTrace: find("b:eq(0)", "Attualmente ci sono ")jquery.js (line 1429) find("Attualmente ci sono ")jquery.js (line 247) map([h1, "Attualmente ci sono ", b, 4 more...], function())jquery.js (line 1045) find("b:eq(0)")jquery.js (line 247) init("b:eq(0)", [h1, "Attualmente ci sono ", b, 4 more...])jquery.js (line 68) jQuery("b:eq(0)", [h1, "Attualmente ci sono ", b, 4 more...])jquery.js (line 23) jQuery("b:eq(0)", [h1, "Attualmente ci sono ", b, 4 more...]) myFunction() why?? context is not a JQuery object??