View Full Version : jquery to javascript

09-01-2011, 07:31 AM
I have a code written in jquery which I have to transform to javascript.
is there any tool for this or I have to do this manually?
Please help..

09-01-2011, 11:19 AM
This will be a manual process ... and to be honest: Good luck with that. jQuery includes a lot of stuff that deals with browser dependent behaviour and if you want to transform all of it, that would be a major task. Some of the more general commands might be easily transformable though.


$('#myelement').attr('src', 'http://www.google.de');

// will become this for all browsers:

document.getElementById('myelement').src = 'http://www.google.de';