Guest User

Guest User

  • Tech Writer
  • 103
  • 13.2k

Fixed footer in Bottom.

May 24 2021 7:31 AM
I have use this code for fixed footer in bottm.It's working but I have check consol error show
 
<script type="text/javascript">
function placeFooter() {
if ($(document.body).height() < $(window).height()) {
$(".footer").css({ position: "absolute", bottom: "0px" });
} else {
$('.').css({ position: '' });
}
}
placeFooter();
</script>
 
Uncaught Error: Syntax error, unrecognized expression: .
at Function.se.error (VM6899 jquery.min.js:2)
at se.tokenize (VM6899 jquery.min.js:2)
at se.select (VM6899 jquery.min.js:2)
at Function.se [as find] (VM6899 jquery.min.js:2)
at S.fn.init.find (VM6899 jquery.min.js:2)
at new S.fn.init (VM6899 jquery.min.js:2)
at S (VM6899 jquery.min.js:2)
at placeFooter (latest-trends:166)
at latest-trends:169

Answers (2)