How to get id of the clicked element using jquery

Posted by khumlo Freddie in Javascript, jQuery on 06. Aug, 2011 | 0 Comments

When you have situation where there are multiple images and when clicked you want to used the id of the clicked image. So depending on this id you implement different operation on the page. Getting id of the element which triggered an event On HTML page,copy and paste below codes <div class=’images’> <img id="sun" src="image1.jpeg" [...]

Extract jQuery Ajax with array as response

Extract jQuery Ajax with array as response

Posted by khumlo Freddie in AJAX, jQuery, PHP on 08. Dec, 2010 | 0 Comments

For those who have had a problem handling jquery Ajax which requires large amount of data as response. Few months back I had faced the same issue for which I got suggestion to use bunch of special characters in between values and return as a big string and then using split() to get final result [...]