Javascript Ajax jQuery Html PHP Example Quiz New MORE
Need a Website Or Web Application.Contact : +91 9437911966 (Whatsapp) Note: Paid Service

jQuery change() Method

jQuery change event occurs when the value of an element is changed. Generall it is used in HTML select box. It is an inbuilt function of jquery.


$(selector).change() It triggers the change event for selected elements. $(selector).change(function) It adds a function to the change event.


	<!DOCTYPE html>
	<script src="">
	count = 0;
		var data=$("select option:selected").val();

		  <option value="">Select</option>
		  <option value="Cricket">Cricket</option>
		  <option value="Football">Football</option>
		  <option value="Hockey">Hockey</option>
		<p>You Select: <span id="message"></span></p>

Run it Yourself »