score:1
I assume you want the this
value in the handler to be the same as the this
value of the code that sets up the event? If so, you can achieve this easily with bind
. Bind allows you to pre-set the this
value of a function (and also, optionally curry parameters).
$('#'+target+'_HID.box.flipped:visible a').click(function(e){
console.log('otroclick',e,this)
}.bind(this));
This will set the this
value of the handler to the current this
value.
And like all nice things, bind
isn't supported in IE8, so you'll want to grab a shim from here if you need to support that pile.
score:0
this is working fine, I have tested this
$( "#target" ).click({a:5}, function(evt) {
console.log( "------------" );
console.log( this, evt );
console.log( evt.data );
});
you can check it on http://api.jquery.com/visible-selector/
you may need to update jquery
Related Query
- Meteor template event Click not firing on iPhone
- Firing click event in Bookmarklet ends up where Asp.Net throwing Null Reference exception
- Jquery datatable click event is not firing for second time
- blur event not firing on click of interactJs draggable elements
- Backbone view click event not firing
- Simulated Click not firing event on GWT site
- Click event not firing with copied anchor in new jstree
- JQuery dynamically added row, click event not firing
- Jquery Ajax success wont firing instead complete event works
- Click event doesn't firing - JQuery
- Click event doesn't firing - JQuery
- jquery on click event firing inside false conditional
- jquery selector click event not firing with angular
- Ajax Start Event Firing after return from Controller
- click event not firing on elements inside thickbox
- click event not firing on elements inside thickbox
- mouseover, mouseout, click event handler not firing
- jQuery datatables loaded from JSON, row click event only firing on sort
- JQuery: click event not firing
- how do I pass context and a perameter to a external function from a click event
- dynamically created link click event firing but the delete function is not doing the desired effect
- Jquery server control click event is not firing
- jQuery click event not firing first time
- Click event id not firing using JavaScript
- Backbone button click event not firing
- Firing click event on click event, touch screen
- jQuery click event not firing for anchor when contained within slickgrid cell
- How to add click event to a iframe
- Javascript onChange event not firing in Input type file
- Access dynamically created data-attribute in jquery on click event
- Adding click event to markup I can't edit
- Change event on Select without triggering Click event
- On Click Event JS Loader Wordpress
- dynamycally created element click event inside jquery plugin?
- dynamycally created element click event inside jquery plugin?
- Click event triggered from parent page not working in IE
- Dynamic ng-click along with $compile fires click event two times on single click
- Button lossing click event after jQuery animation
- Rails click event not working
- JQuery on click event variable gets 2 values instead of one
- DataTable cell button click event not fire in asp.net mvc
- Click on dynamically loaded content iterates event
- Click event doesn't work on TizenEvent
- jQuery -- recalculateTotal - add and subtract Price on click event
- click event on ajax loaded content and dynamic id
- Animate HTML5 Canvas - Event Listeners firing more than once?
- Generating a random number in the inner click event of nested click events
- Style background Color from a second click wont work?
- jQuery - Removing td's click event after clicking it
- Click event on dynamic button in table
More Query from same tag
- jqxListBox:Check listbox item based on value member
- how to get array input values into database using angularjs and PHP
- jQuery click function returns all images from instagram api in bootstrap modal
- jQuery - Field values and comparisons
- animate panel with jquery
- magento 1.9.0.1 how do i show default new product after ajax call to specific category then back to default product
- Jquery/html/php folder treeview
- embedding a .wav file shows a media player bar I don't want
- On a wordpress blog I would like the post title to sit fixed in the bottom and change when I scroll to the next post
- Using jQuery/Javascript to copy the contents of a table ignoring the header to clipboard
- keep getting error on AJAX request
- Call same function in window ready and window resize
- Pop-Up Div on Top?
- How to add hyperlink list item on JSON?
- How to make a jquery javascript library affect just a specific div in HTML?
- Capture click on a leaflet bindpopup
- Coding a Recently Viewed items that I would then insert into HTML
- POST Action always receives null via Ajax
- [jQuery]All jQuery interactions stopped with a #div after HTML change with $(div).html()
- jQuery/JS not removing JS functions on HTML wipe?
- Infinite scrolling div glitching with images
- Updating quantity of multiple field from selections using jQuery
- jQuery load 3 divs from single page
- jQuery appendTo() without reloading embedded content
- How to add dynamically a "x-tmpl" script from a scripts page to HTML page?
- Changing buttons into checkbox
- jquery mouseover for background parallaxing on mouse position
- Calling to to another page with AJAX while showing loading image
- fileReader.readAsBinaryString(file) preventing image upload due to parameter not being type "Blob"
- Consequent jquery promises