Jquery Javascript

Jquery & Javascript Code snippet might be helpful for you

Jquery & Javascript Code snippet might be helpful for you. 1. Onclick event Method 1: <button type=”button” onclick=”clickTest()”>Click</button> function clickTest() { // code … }   Method 2: $(‘.btn-delete’).on(‘click’, function () { // code … }); => should work fine, no problem. But if the onclick button is in the result of another function, the […]

Read more...

Add and Remove input textbox with Jquery, Javascript

Hello everyone, to continue the series of articles about Jquery and Javascript, in this article I introduce you to the small code about adding and removing form elements using Javascript, with specific example is input textbox. On the same screen, you can add and remove elements including textboxes and checkboxes without reloading the page. By naming […]

Read more...

Getting Latitude and Longitude from a Click Event

When we get the coordinates of a location in the world, we can get a lot of information about it. These include weather information, traffic, economic information, pricing, … The use of google maps makes it easy to get the coordinates of the place we select by clicking the mouse. You need regist Google Maps […]

Read more...

Customizable multi-type, multi-y axis code ChartJS – Part 2

Following the part code of ChartJS 2.x, after part 1 of ChartJS, we discussed the multi-line display of the chart. We continue to present to you some ChartJS modifications that may be required for your requirements in part 2 of this article will edit some more interesting options. In addition to the multi lines, we will […]

Read more...

Code Chart JS with multi type – Part 1

We all know how powerful ChartJS 2.x is when it comes to chart rendering, and in some cases ChartJS is more robust when compared to Google Chart. In this content, we will talk about multi-type show in ChartJS. Assuming you are using PHP server, we need json_encode to show in JS. In addition to the […]

Read more...

Javascript code convert Western calendar to Japanese calendar

It’s easy to convert western calendar to Japanese calendar with a few lines of Javascript (西 暦 を 日本 暦 に 変 換 す る), to combine the datepicker to display the Japanese language, to display the Japanese era, there are few articles to share. In this article, I will share the javascript code to […]

Read more...