Miscellaneous #2: 25k views on my blog

I had started my blog on June 22, 2013 with an aim of sharing my jQuery knowledge, that I have gained by practical experience in the field of web-development, with wider audience. And finally, I have got 25k views in total after 6 months of hard work and dedication. That too on New Year’s Eve 2013. I am absolutely delighted to have got over the first hurdle, but I am only too well aware that this is just the beginning.
Continue reading

Miscellaneous #1: CascadiaJS 2013

Today I am not going to explain about any new jQuery  tip  or  trick , which I usually do on this blog, but instead I am going to post some videos which I watched recently from  CascadiaJS 2013 . For those who are not aware of CascadiaJS, CascadiaJS is actually a two-day conference on the cutting edge of JavaScript. Browser, server, OS – they cover it all.

Continue reading

jQuery Trick #3: Focus and Select issue in Chrome & Firefox

In this post I am going to explain about a trick that would help us to resolve a focus and select issue, which I recently found in Google Chrome (version 29.0.1547.76 m) and Firefox (version 23.0.1). This is a browser-specific issue and it’s kind of weird that it didn’t occurred in  Internet Explorer 10  :P
Continue reading

Get element on which currently called jQuery event handler is attached

In this post I am going to explain, how we can get the element on which currently called jQuery event handler is attached using a simple Event Object called  event.delegateTarget . This event object has been added to the jQuery version 1.7, so the examples below will not work with the previous versions of jQuery.
Continue reading

Bind events to dynamically created elements using jQuery

While writing code in jQuery, we sometimes need to create HTML elements dynamically. But the problems starts occurring when the events that we have already binded to the existing HTML elements, does not works in the same way for the newly created elements. :( So, lets say we have existing DIV and we have a click event binded to it. Now, when we click on this DIV, we get an alert. After that, we add one more DIV to the page dynamically, but on clicking on this new DIV there is no alert coming. So, what is the problem here? Why is the click event not working for this new DIV? Let’s look into this problem in details.
Continue reading