jquery L1 1.How to retrivee href value $("p").attr("href"); 2.Slide Down $("#panel").slideDown(); 3.$("#p1").css("color", "red").slideUp(2000).slideDown(2000);What is this method? Jquery Chaining 4.The method which removes the child elements of the selected element(s). jQuery empty() 5.How to set background $("p").css("background-color", "yellow"); 6.excludes padding, border and margin width() 7.includes padding only InnerWidth() 8.includes padding and border OuterWidth() 9.All elements with a title attribute value starting with "Tom" $("[title^='Tom']") 9.Returns which keyboard key or mouse button was pressed for the event event.which 10.Attaches/Triggers the mouseover event mouseover() 11. Inserts content at the end of selected elements append() 12.Removes all child nodes and content from selected elements empty() 13.Returns an element with a specific index number of the selected elements eq() 14.Returns all next sibling elements between two given arguments nextUntil() 15.Remove elements from the set of matched elements not() 16.Returns the direct parent element of the selected element parent() 17.$("p") All
elements 18.Attaches two event handlers to the hover event hover() 1) $("Button").dblclick() Double Click 2) event.stopPropagation() 3) Which property contains the last/previous value returned by an event handler triggered by the specified event ? Ans: event.result 4) event.target 5) All
elements that are descendants of a
elements that are siblings of a
element that are next to each
elements : Ans : $("h1,div,p") 14)Select the last
element : Ans $("p:last") 15)All
elements that are a direct child of a
element – Ans: $("div:has(p)") 18)All elements that are a parent of another element – Ans : parent 19)All elements with a href attribute value not equal to "default.htm" – Ans :$("[href!='default.htm']") 20)All elements with a title attribute value starting with "hel" a) $("[title^='hel']") b) $("[title~='hel']") c) $("[title*='hel']") d) $("[title|='hel']") 1. Returns the namespace specified when the event was triggered. event.namespace 2. Returns which DOM element triggered the event event.target 3.All
element – Ans: $("div:has(p)") 4.All elements with a href attribute value not equal to "default.htm" – Ans : $("[href!='default.htm']") 5.The
element that are next to each
element that are sibling to each
element 8. $("ul li:gt(3)") List elements with an index greater than 3 9.$("[title*='hello']") All elements with a title attribute value containing the word "hello" 10.Slide up 11. Fade out