Davin Martyn

Davin Martyn

  • NA
  • 7.5k
  • 3m

Meaning of Parents

Jul 7 2015 4:53 AM
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)