Category Archives: JavaScript

jQuery Transfer with Flair

jQuery UI’s Transfer effect is a very convenient utility to give an illusion that an element flies to another element. You just need to do the following: $( “#fromElem” ).effect( “transfer”, {to: “#toElem”, class: “transferElem”}, 500); jQuery creates an new … Continue reading

Posted in JavaScript | Leave a comment

innerHTML vs innerText

This seems to be a very old topic. However I encountered a very interesting bug lately made me think about it again. What do you think the following jQuery code will display? myDiv1.html(“A&W”); myDiv2.html(“A&W Restaurant”); If you are like me, … Continue reading

Posted in JavaScript | Leave a comment