Javascript | Unable to get content of HTML while converting HTML page to PDF

| By Webner

Problem : Unable to get content of HTML while converting HTML page to PDF. Solution : You can use the javascript if you want to get content of HTML while converting it into PDF : <HTML> <head> <script type=”text/javascript”> function submitForPDF() {

HTML text box should only accept numbers and dot

| By Webner

You can use the following javascript code to check textbox value: <html> <head> <script language=”Javascript”> function isNumberKey(evt) { var re=new RegExp(/^[0-9]*.?[0-9]*$/); if(document.getElementById(“text”).value.match(re)) { alert(“match”); } else { alert(“no match”); return false; } } </script> </head> <body> <input id=”text” type=”text” value=”0″

Javascript Calendar Problem on Chrome and Safari browsers

| By Webner

While working in a project, we faced a problem with using a calendar on a webpage. It was working fine for Mozilla Firefox but not for Chrome and Safari. Initially we had this code: <input type=”text” name=”startdate” id=”startdate” class=”form-control datepicker”

How to add slow blur effect using jquery and css

| By Webner

Suppose you have to blur this image: To show it like this and this blur effect should be gradual: This is one solution to achieve this: $(document).ready(function() { animationTime(); }); function slowblur(number) { $(‘#firstimage’).css({‘filter’:’blur(‘+number+’px)’,’-webkit-filter’: ‘blur(‘+number+’px)’,’-moz-filter’: ‘blur(‘+number+’px)’, ‘-o-filter’: ‘blur(‘+number+’px)’,’-ms-filter’: ‘blur(‘+number+’px)’}); }