Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

JQuary - QUESTIONS : PART 7

What is the difference between .width() and .outerWidth()?

The methods are basically the same. The only difference is that .width() returns a number, whereas outerWidth() a string.
width() returns the computed width of the element, while outerWidth() returns the width plus all the margins and paddings.
No difference. width() is a shorthand alias for outerWidth()

SHOW ANSWER

How do you fetch the first span on the page, which has the class ‘green’?

$('span, .green, :first')
$('first .green span')
$('span.green:first')

SHOW ANSWER

What does the $('#myDiv').hover() method do?

It binds the functions you pass as parameters, to the mouseenter and mouseleave events.
Converts the element upon which it was called, into a hoverable menu.

SHOW ANSWER

Who developed jQuery?

John Richard
Mark Bensman
John Resig
Joffman Denieu

SHOW ANSWER

What does it mean by toggle()?

Selected element will be fade In and fade Out
Selected element will be hide and show
Selected element will be sliding up and down
Selected element will be animate with toggle

SHOW ANSWER

What script need to write for toggling fade?

fade Toggle()
fadeIn()
fadeout()
toggle()

SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in