onclick Event jquery
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});$('#selector').on('click',function(){
//Your code here
}); $( "#dataTable tbody tr" ).on( "click", function() {
console.log( $( this ).text() );
});
$(elem).click(myFunc());$('a').click(function(){
$.ajax({
type: "POST",
url: "mysimplepage.php",
async: true,
data: { logDownload: true, file: $(this).attr("name") }
});
return false;
});
// Html
<input type="text" onchange="MyFuction(this)" />
// Js
function MyFunction(item) {
var input = $(item);
console.log(input);
}
Also in JavaScript:
- state in react
- detect logged user wordpress javascript
- npm react-router-dom
- navigate to route and refresh angular 6
- javascript cash register
- react native add link to text
- check if number appears odd number of times in array javascript
- denuncia perturbação
- open bytes in new tab angular
- choropleth map of india which shows current date confirmed cases in every state json api python.
- how to check the listeners on an object js
- toggle class in javascript
- page is loading from previous page scroll in reactjs
- javascript append array to array
- debugger js
- react client real ip address
- html button click only once
- Find parent and child from array javascript
- nested array loop in javascript
- jquery remove tags keep content
- how get parent element javascript
- js map value in range
- multiple line string in jquery
- javascript continue