3
Answers

Meaning of Parents

Davin Martyn

Davin Martyn

9y
373
1
Hi,
 
I want to know about the following code which are given below?

if ($(this).parent().is('span')) {

$(opt).show();

$(span).replaceWith(opt);

 
Why are we use  $(this).parent().is('span') and 

$(opt).show();

$(span).replaceWith(opt);

 
Answers (3)