javascript

I will definitely forget the syntax of jQuery selectors if I do not write jQuery code for some days. So it is better to list them here as a memo. […]

To get the text value of element, you can: use .text() <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <script src=”jquery.min.js”></script> </head> <body> <div>aa<b>bb</b></div> <div>cc</div> <script> alert($(“div”).text()); </script> </body> </html> This […]

prototype and __proto__

Every object in javascript has a __proto__ property. The value of __proto__ is the prototype property of its construction function, or null if the object is not constructed by a […]