Skip to content

Latest commit

 

History

History

WDS-38_JQuery-3_jQuery_Crash_Course_3-DOM_Manipulation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Web Developer Study

12 months web developer study. I decided to dedicate at least 12 months to learn web development.

Begin Banner

Result

Middle Banner Middle Banner

What I learned/used

  • JQuery
    • DOM Manipulation
      • $('element').css('property','value') //single
      • .css({property: 'value', property: 'value', ......})// multiple -> objects
      • .addClass('className')//add a class (css)
      • .removeClass('className)
      • .click(function(){})
      • .toggleClass()
      • .text()
      • .html()
      • .append() // add at the end
      • .prepend() // add at the beginning
      • appendTo('')
      • prepenTo('')
      • .before()
      • .after()
      • .empty() //takes the HTML out
      • .detach()
      • .attr('')//The .attr() method gets the attribute value for only the first element in the matched set. To get the value for each element individually, use a looping construct such as jQuery's .each() or .map() method.
      • .removeAttr()
      • .wrap('')
      • .wrapAll('')
      • .keyup()
    • Array
      • $.each(arrayName, function(i,val){....})
      • .toArray()

End Banner