-1

In jQuery when using .html as in:

$(‘#notify’).html(‘Want to get notified of single woman living near you?’).slideDown();

The jQuery just shows what appears there in the jQuery inside .HTML() and nothing else, but if you instead put:

(“#notify”).slideDown();

It shows everything inside the div id #notify

I expected to show both, but just show what appears inside the jQuery code .html.

1 Answers1

1

slideDown() is applied to hidden HTML element to generate slide down effect.If HTML element is visible then no slideDown() effect applied on it.

Code Genie
  • 21
  • 7
  • yes, this is a good point, but my point is that it wouldn´t show the div if you have .html(..) in the jquery no matter if you slideDown or slideUp, it will display just the .hml(...) content. – Alejandro Alarcon Feb 08 '23 at 14:19