diff --git a/index.html b/index.html index 621dcda..be15cb9 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,9 @@ + + JQ Ex
@@ -55,4 +57,4 @@

- \ No newline at end of file + diff --git a/jqfile.js b/jqfile.js new file mode 100644 index 0000000..051a372 --- /dev/null +++ b/jqfile.js @@ -0,0 +1,44 @@ + +$(document).ready(function() { + + $('h1').css("color", "blue"); + + + var tsList = "
    "; + + var myLoop = ["Rome", "London" , "Paris"]; + $("h4").after(tsList); + var $myOl = $("ol"); + for(var i=0; i < myLoop.length; i++) + { + $myOl.append("
  1. " + myLoop[i] + "
  2. "); + + } + + $myOl.css(""); + + + + + $(".sad").toggleClass("sad happy"); + + $("#annoying-popup").html('http://www.cashcats.biz'); + + $("#annoying-popup").css("top", "30px"); + $("#annoying-popup").css("position" , "relative"); + $("#annoying-popup").css("float" , "right"); + $("h1").before( $("#annoying-popup")); + + + var $newLi = $('
  3. --
  4. '); + var $oldLi = $('li') [9]; + $($oldLi).replaceWith($newLi); + + + + var textArea = "