Contributions
Re: Not able to get the text of an HTML element.
Hello, According to me, you should try following code. <script> function get_content() { var html = document.getElementById("txt").innerHTML; document.getElementById("txt").innerHTML = html.replace(/<[^>]*>/g, ""); } </script> <body> <button type="submit" onclick="get_content()">Get Content</button> </body>1.8KViews0likes1CommentRe: Decimal value converted to next number(int)
Hello, You can use Math.ceil() to round off your value in higher side. First, you need to apply Math.ceil() on your decimal pointed value and then you can convert it into an integer so that you can get value in an integer5 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews1like0Comments