ionezation Posted December 31, 2013 Share Posted December 31, 2013 Hi, I wanna know the reason to use this [ $() ]. I dint get its concept :s .. I am now on page 236..chapter 7 creating function. Link to comment Share on other sites More sharing options...
Larry Posted January 1, 2014 Share Posted January 1, 2014 Sorry for the confusion. I don't think I use $() before (or in) Chapter 7, do I? In any case, that's just a terse name given to a user-defined function that makes for easy use. The function's name is $ and the () are the execution of that function. This is what jQuery does for its main function. Link to comment Share on other sites More sharing options...
HartleySan Posted January 1, 2014 Share Posted January 1, 2014 The first time I ever saw $ (for me, it was in the context of using jQuery), I was equally confused until I realized that $ is nothing more than just another variable name in JS. Just like a, b, or J, $ is a valid variable name, and it was originally adopted as the short name for calling the jQuery function because it's only one character (thus quick to type), and at that time, $ wasn't really used by anything else, thus it was a pretty unique variable name that was easy to remember. Link to comment Share on other sites More sharing options...
ionezation Posted January 3, 2014 Author Share Posted January 3, 2014 Oh God ! thanks for reply both you. Well by the way, larry you are so cruel ... you made very long database query in PHP and mysql dynamic web development in its message board chapter.. just kidding Link to comment Share on other sites More sharing options...
Recommended Posts