-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmyQuery03.js
More file actions
43 lines (31 loc) · 927 Bytes
/
myQuery03.js
File metadata and controls
43 lines (31 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// TargetTrust
// 3º Aula
//$.noConflict();
$(function(){
$("div:first").hide();
$("#botao").click(function(){
$("div:first").attr("contenteditable","true").html("DIGITE"); $("div:first").toggle(1000);
});
//Segundo UL...
$("li>ul").css("color","#c70000")
.hide()
.parent()
.click(function(){
$(this).children().addClass("ativo");
$(this).children().slideToggle(1000, function(){
$(this).removeClass("ativo");
});
$("body").animate({
scrollTop:760}, '500',function(){
});
});
var get = $("[value='legal']").val();
alert( get );
//$("li").before("<li> antes </li>");
//$("div").eq(1).children().children().html("itens");
//$("div:last>ul>li:first").hide();
//$("li:parent").hide();
//var array = $("div"); // variavel = jQUERY
//array.eq(1).html("legal"); jQuery
//array[1].innerHTML = "legal"; //JS
});