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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -