Amit D has Published 118 Articles

How to use GET method to send data in jQuery Ajax?

Amit D

Amit D

Updated on 17-Feb-2020 07:35:37

2K+ Views

The jQuery.get( url, [data], [callback], [type] ) method loads data from the server using a GET HTTP request.Here is the description of all the parameters used by this method −url − A string containing the URL to which the request is sentdata − This optional parameter represents key/value pairs that will be ... Read More

How to load a page in div using jQuery?

Amit D

Amit D

Updated on 17-Feb-2020 07:25:03

2K+ Views

To load a page in div in jQuery, use the load() method. Firstly, add the web page you want to add.Here’s the code for new.html −     This is demo text. ExampleNow, the code snippet for the file which adds the above page, ... Read More

How jQuery.getJSON() method loads JSON data in jQuery?

Amit D

Amit D

Updated on 17-Feb-2020 06:54:47

434 Views

The jQuery.getJSON( url, [data], [callback] ) method loads JSON data from the server using a GET HTTP request.Here is the description of all the parameters used by this method −url − A string containing the URL to which the request is sentdata − This optional parameter represents key/value pairs that will be ... Read More

How to retrieve data from JSON file using jQuery and Ajax?

Amit D

Amit D

Updated on 17-Feb-2020 06:53:11

6K+ Views

To retrieve data from JSON file using jQuery and Ajax, use the jQuery.getJSON( url, [data], [callback] )The jQuery.getJSON( url, [data], [callback] ) method loads JSON data from the server using a GET HTTP request.Here is the description of all the parameters used by this method −url − A string containing the ... Read More

How to load JSON data using jQuery?

Amit D

Amit D

Updated on 17-Feb-2020 06:51:09

15K+ Views

To load JSON data using jQuery, use the getJSON() and ajax() method. The jQuery.getJSON( ) method loads JSON data from the server using a GET HTTP request.Here is the description of all the parameters used by this method −url − A string containing the URL to which the request is sentdata − ... Read More

What is the difference between `on` and `live` or `bind` in jQuery?

Amit D

Amit D

Updated on 17-Feb-2020 06:01:22

244 Views

jQuery on() methodThe on( events [, selector ] [, data ], handler ) method binds a handler to an event (like click) for all current − and future − matched element. It can also bind custom events.Here is the description of all the parameters used by this method −events − ... Read More

How to disable a particular jQuery event on a page?

Amit D

Amit D

Updated on 17-Feb-2020 05:54:34

442 Views

To disable a particular jQuery event, use the jQuery off() method. You can try to run the following code to learn how to disable a particular jQuery event on a page −ExampleLive Demo $(document).ready(function(){     $("p").on("click", function(){         alert("You clicked it!");   ... Read More

How to submit a form using jQuery click event?

Amit D

Amit D

Updated on 17-Feb-2020 05:53:22

6K+ Views

To submit a form using jQuery click event, you need to detect the submit event. Let’s submit a form using click event and without using click event.ExampleYou can try to run the following code to learn how to submit a form using jQuery click event −Live Demo ... Read More

How to make text bold, italic and underline using jQuery

Amit D

Amit D

Updated on 17-Feb-2020 05:17:22

3K+ Views

To make text bold, italic and underline using jQuery, use the jQuery css() method with the CSS properties font-style, font-weight and text-decoration. You can try to run the following code to learn how to make text bold, italic and underline using jQuery −ExampleLive Demo $(document).ready(function(){     ... Read More

How can I change the font family and font size with jQuery?

Amit D

Amit D

Updated on 17-Feb-2020 05:16:10

1K+ Views

To change the font family and font size with jQuery, use the jQuery css() method. The css property font-family and font-size is used. You can try to run the following code to learn how to change font family and font size with jQuery −ExampleLive Demo $(document).ready(function() ... Read More

Advertisements