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 […]
Category: jQuery
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 […]
Combinaison de Ext JS et JQuery
Hier, j’ai essayé d’apprendre à utiliser JQuery avec Ext en cas de besoin pour des projets futurs. et voici le résultat : Les tests ont été effectuées avec les dernières versions disponibles à savoir : Ext : 3.3 beta Jquery : 1.4.2 CSS et images de ExtJS : En suite inclure le script JQuery : […]
Add icons to your links automatically using jQuery & CSS
You want to show a particular icon to a particular type of link. For eg: a pdf icon to all pdf file links, a text document icon to all text document links, zip icon to all links that are linked to zip files etc. Step 1 – Find the right icons Getting a free icon […]