Say you want to know the ID of an element using jQuery. You can achieve this easily using jQuery’s attr() method: But this is fairly useless, because it requires you to already know the ID of the element that you want. Usually you’ll want to find out the ID if you don’t already know it […]
Month: January 2013
How to disable/enable an element with jQuery
Sometimes you need to disable or enable some elements in your document and jQuery makes this task easy. All you have to do is to set “disabled” attribute to “disabled”. Example: In order to enable any “disabled” element you need to set the “disabled” attribute to empty string or remove it entirely like in the […]
Eviter l’erreur : ‘PHP Incomplete Class’
Il faut que la définition de la classe soit incluse avant le session_start(). session_start() tente de délinéariser l’objet mais vu qu’il ne connaît pas la structure de la classe, il lui donne ce joli nom __PHP_Incomplete_Class Object. Il suffit de faire un require_once du fichier contenant la définition de la classe avant de faire session_start().