Teaching for free so i can re-learn myself

Discussion in 'Programming' started by ricmetal, Jul 28, 2010.

  1. #1
    hi
    im recently new to multi-language programming using html, css, php and javascript (jquery mostly) and i tap into mysql
    i want to solidify what i've learned in those languages so im looking for someone that wants to learn those.
    you can ask me straight forwarding questions like how do i target a div with jquery.
    questions along those lines are fine.
    i wont anwser questions along the line of how do i build and apllication like facebook.
    i am not here to build the damn thing for you.
    i want to use google wave to teach so get a google wave account and send me your email address if your interested
     
    ricmetal, Jul 28, 2010 IP
  2. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #2
    Hm, I'm not familiar with jQuery. I heard it's a collection of javascript library. Give me a simple example of it - use the most common library used. :)
     
    Rainulf, Jul 28, 2010 IP
  3. ricmetal

    ricmetal Member

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    yeha, its a library. and it's good. very little code accomplishes alot.
    one of the method/properties i use most of jQuery is the hide() ans show()
    its one of the easiest.

    here's how it would look like to hide a div using jQuery

    
    $('#divName').hide();
    
    Code (markup):
    that's it!

    but there's more stuff

    you can also change the class of all paragraphs

    
    $('p').addClass('whiteBackground');
    
    Code (markup):
    find an element inside another element

    
    var elementToTarget = $('#element').find('#targetDivId');
    if(elementToTarget.length == 0) {
       alert('not found');
    }
    
    Code (markup):
    it's really cool and cross-browser which is always great :D
     
    ricmetal, Jul 28, 2010 IP