jQuery radio button click event

I have 5 radio buttons and jQuery is included in the source. But the event not getting fired. After searching found the solution for the problem. Here is my HTML and code for the jQuery click event. HTML: first second … Readmore +

Category: Javascript, jquery

Greasemonkey AJAX request

AJAX request has some security restrictions to do cross-domain request and with the Greasemonkey AJAX request will show this common error in the console. Uncaught ReferenceError: GM_xmlhttpRequest is not defined Basically $.get(), $.post() or jQuery.post() and other jQuery AJAX functions … Readmore +

Category: Ajax, Javascript

<style type=”text/css”> .pg-normal{ cursor:pointer; } .pg-normal{ background-color: #CCCCCC; border-radius: 4px 4px 4px 4px; color: #FFFFFF; font-weight: bold; margin-right: 5px; padding: 0 7px; } .pg-selected{ background-color: #74C9FF; border-radius: 4px 4px 4px 4px; color: #FFFFFF; font-weight: bold; margin-right: 4px; padding: 0 10px; … Readmore +

Category: Javascript

Passing JSON Data From PHP to Javascript

What is JSON JSON (JavaScript Object Notation) is an independent data exchange format. JSON is limited to text and numeric values. Binary values are not supported.JSON is a subset of the JavaScript Specification (ECME-Script) and it is therefore directly supported … Readmore +

Category: Javascript, PHP

Array.pop in javascript

In Javascript Arrays. Array.pop() will return the last element of an Array and delete it from the Array.   Example:- var myArray = [1,2,3,4,5,6,7,8,9,10]; var popped = myArray.pop(); document.writeln(popped array+'<BR>’);   Output:- popped array 10

Category: Javascript