Hi @Kiran_Vedantam, there is no error, it is that like if I want to round off 4.6 to 5 using Math.ceil then it is not working, It is showing 4.6 only but If I type the same code in console then it is working fine and showing 5.
I'm using Onready function in which I'm calling a function say func();In func() I'm using Math.ceil on a decimal value stored in a variable, but it is not working. But if I use Math.ceil in console on same variable then it is working fine.How to use it in my function?
<div class="something"><ul class="pagination" id ='pagination'></ul></div>In between of UL tags I'm trying to dynamically add pagination. When I'm using document.querySelector(".pagination"); in console then it is working absolutely fine but showing error when using it with innerHTML.
Hi @Asutosh_Jena_ , you are right it is working but when I'm trying to use x.innerhtml in js then it is showing error. I have modified my question, can please read again my question and then help? Thank you