How to Change Marker Position on Google Map using JavaScript


Google Maps JavaScript API provides various option to customize the Google Map functionality as per your needs. The marker position change on Google Map is one of them. Using JavaScript you can easily change the position of the marker on Google map without page refresh. Use setPosition() to change the position of the marker on Google Map.


How to Convert Text Field Value to Uppercase While Typing


Using jQuery you can automatically convert text field value while typing. Not only the jQuery, here we will show you the three different way to transform text field data to uppercase while typing. You can convert text to uppercase using jQuery or JavaScript or CSS.


How to Convert File Size in Bytes to KB, MB, GB in Javascript


Generally, when we get the file size in JavaScript, it returns in bytes format. But if want, you can easily convert file size to human readable format using JavaScript. Use our custom formatFileSize() function to convert the size from bytes to KB, MB, GB, TB, PB, EB, ZB, YB using Javascript.


How to Get File Info (name, size, type) in JavaScript


Before sending the file to the server for upload, it always a good idea to validate the file. Using JavaScript you can easily get the file info and validate in client-side. The following single line of javaScript code, help you to get the file name, size, type, and modified date.


How to Convert PHP Array to JavaScript Array


PHP array can be used in JavaScript, whatever the array is a single or multidimensional or indexed or associative array. You can convert PHP array to JavaScript array easily with a single line of code. Using json_encode() function, PHP array can be converted to JavScript array and accessible in JavaScript.


How to Open URL in New Tab using JavaScript


JavaScript window.open() method opens URL in a new browser window. Use _blank in the second parameter of window.open() method to open a URL in a new tab using JavaScript.


How to Add Hours to JavaScript Date Object


JavaScript setHours() method sets the hour of a date object. JavaScript getHours() method returns the hour (from 0 to 23) of the specified date and time. Using JavaScript setHours() and getHours() method you can easily add hours to Date object.


Issue Solved: HTML5 Geolocation not working in chrome


If your chrome version is 50, then you’ll encounter that HTML5 Geolocation API is not working. In Chrome version 50, HTML5 Geolocation delivered over HTTP no longer supported by Chrome. The getcurrentposition() and watchposition() are deprecated on insecure origins in Chrome 50.


How to get current Date and Time using JavaScript


JavaScript Date object help us to work with dates. Use new Date() to create a new object with current date and time. From Date object you can get current date in Y-m-d format and current time in H:i:s format.