Sunday, October 20, 2013

Javascript techniques


Module pattern

function Answer(questionID, text) {
    this.questionID = questionID;
    this.text = text;
}

Working with arrays

var list1 = Array();
list1.push(currSec);


jQuery Append to element
$('#addLink').append('<B>test</B>');


Opener
http://www.webreference.com/js/tutorial1/opener.html

No comments:

Post a Comment