jquery how to set jquery DOM name -
i studying jquery , customize it. when check stackoverflow.com source code view source code in browser. found :
stackexchange.ready(function () { stackexchange.using("postvalidation", function () { stackexchange.postvalidation.initonblurandsubmit($('#post-form'), 2, 'answer'); });
how write stackexchange.ready , function stackexchange.question.init, stackexchange.realtime.subscribetoquestion etc
pls me
something -
var yourcustomname = $(document);
go ahead - yourcustomname.ready(function () {
stackoverflow has custom ready method -
stackexchange.ready=function(d){stackexchange.initialized.done(d)};
Comments
Post a Comment