Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    jquery to javascript

    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..

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    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.

    Example
    Code:
    $('#myelement').attr('src', 'http://www.google.de');
    
    // will become this for all browsers:
    
    document.getElementById('myelement').src = 'http://www.google.de';


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •