Return value: jquery
Overview
Trigger a click event of each matching element.
This function calls all functions that are bound to the CLICK event.
parameter
fnFunctionV1.0
The processing function bound in each matching element event.
[data],fnString,FunctionV1.4.3
Data: CLick ([Data], Fn) can be transmitted into the data supply function FN processing.
fn: The processing function bound to each matching element event.
sample
Description:
Trigger a click event in all paragraphs in the page
jquery code:
$ (“p”). CLICK (); Description:
Hide all paragraphs in the page after clicking.
jquery code:
$ (“p”). CLICK (function () {$ (this) .hide ();}); the above is the content of the jQuery reference manual. Parameter detailed description
parameter data is passed to an additional data object to the event object as an extra.data attribute value
Parameter FN is a processing function that is bound to an event in each selection element
<html>
<head><meta http-equiv=”Content-Type” content=”text/html;charset=utf-8″ /><meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ /><title>
jquery [data] parameter instructions
</title><link href=”css/main.css” type=”text/css” rel=”stylesheet” />
<script src=”jquery-1.8.3.min.js” type=”text/javascript”></script>
<script type=”text/javascript”>
$(function(){
var message = “Pass the information to the Fn function”;
$ (“. TXT”). CLICK ({msg: message}, function (event) {$ (“# IDTIP”). Show (). Html (every.data.msg);}); // Settings text
});
</script>
</head>
<body>
<input class=”txt”></div>
<div id=”idTip”></div>
</body>
</html>