Hacker News new | ask | show | jobs
by mappu 2945 days ago
Apples to apples -

    $(".formname").html(n_input);
The jQuery solution is shorter, and it works in browsers without querySelector (old IE) and without innerHTML (which is missing/readonly for some element types in old IE).