Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

I have the following jquery code to trigger a click event: $(document).on('click','#button1, #button2',function(e){ console.log(e.target.id); if (e.target.id == 'button1') { $(...
adam78's user avatar
  • 10.2k
0 votes
1 answer
201 views

I want to use jquery to programmatically enter a word or phrase and then trigger the Google search box autocomplete suggestions from my console. Here is what I have tried so far: // Inject JQuery into ...
Joseph U.'s user avatar
  • 4,627
0 votes
2 answers
289 views

I have an html web page that uses .load() to dynamically add a header. I am also using firebase Auth for authentication which uses .onAuthStateChanged() to identify if a user is signed in or not. ...
Matt Wolfe's user avatar
1 vote
2 answers
2k views

In my form in one set of repeating rows (created dynamically) there is a button on each row that allows the user to upload a file which will then be linked/tied to the data in that row. head head ...
Peter Bowers's user avatar
  • 3,103
1 vote
2 answers
161 views

I'm trying to select all elements in the document except for the #private_chat_menu element and attach a mouseup trigger function to them. However, it runs the function regardless of whether I click ...
Daniel Harris's user avatar
0 votes
3 answers
87 views

on my php page I want to click a button on page load. I have tested it with jQuery and JS. While jQuery does not work, the JS works fine. Any idea why this is the case? jQuery: <script> $(...
Beji's user avatar
  • 103
0 votes
1 answer
163 views

I am trying to write a script which fill data(after i run the code in chrome console) in the registration form of a website. I want a function in pure javascript which exactly work like a jquery ...
Bilal Ahmad's user avatar
  • 1,182
0 votes
0 answers
97 views

Triggering a click Event on a Radio Button and a Checkbox results in a slightly different result when you look at the event thta is triggered: So triggering click on a RadioButton by doing $('#...
LocalHorst's user avatar
  • 1,168
0 votes
3 answers
2k views

I just saw two javascript files: first one had called following line after some success ajax call: $(document).trigger("locationloaded"); The second js had: $(document).on('locationloaded', ...
Sahil Sharma's user avatar
  • 4,317
3 votes
2 answers
3k views

I am trying to programmatically click the "zoom in" icon three times on a page. The <a> is structured: <a class="get-plus" title="zoom in" href="javascript:void(0)" style="display: inherit;"&...
troyrmeyer's user avatar
1 vote
2 answers
5k views

I need a reliable way to detect if $(window).on('resize') has been fired by user interaction or by a jQuery .trigger call. I've tried the following, but I don't seem to get the parameters back in the ...
Jonny Asmar's user avatar
  • 2,000
20 votes
3 answers
24k views

I just ran into this question FIDDLE Triggering click event on anchor tag is not working here. <a class="button2" href="#popup1">hello</a> <div id="popup1" class="overlay"> <...
Amit Singh's user avatar
  • 2,275
0 votes
0 answers
45 views

I want to make a smooth transition when I click the button: <html> <head> <style> span#l0 { display: inline-block; border:20px solid red; ...
user1081168's user avatar
1 vote
1 answer
358 views

I have created several elements dynamically in javascript. These are, among others, range inputs. I want on "input change" event to show the value. Each of these inputs have id like 'probabilitate'+...
user3806279's user avatar
1 vote
0 answers
533 views

I have a performance issue with jquery trigger. My code contains this line $(ispan).trigger('click','itoc'); //ispan is a img element Here the total time taken to execute this line of code is almost ...
CODE BHAI's user avatar
0 votes
1 answer
81 views

Jquery on click event is not working on dynamically added Custom tags My code is $("[addtoShip='yes']").on('click', function() { alert('Ship added') }); Href for <a href="#" ...
Mangesh Sathe's user avatar
0 votes
3 answers
57 views

I have this function onclick event of custom tag densitybtn='yes' $("[densitybtn='yes']").on('click', function () { var no_of_people = 0; //calcdensity $("[calcdensity='yes']").each(...
Mangesh Sathe's user avatar
1 vote
0 answers
97 views

I have the code below. When I trigger #tempbutton from #searchbutton (with an object as a parameter), it works fine. But when I'm doing the same thing from #myid, it won't trigger. Any ideas what I ...
mrjayviper's user avatar
  • 2,440
0 votes
2 answers
2k views

I have the following code $(document).ready(function () { VerifyCustomerFilter(); $("#ToDateStor").on("DateSet", function () { ... ); function VerifyCustomerFilter() { ...
Igor's user avatar
  • 4,033
1 vote
3 answers
1k views

Jquery trigger('click') is not working on Safari and IE, but working on Mozilla , chrome, I Am using AngularJS and here is my code snippet $scope.browseFile = function () { $('.upfile')....
user2659308's user avatar
1 vote
1 answer
586 views

I'm at loss on how to manually update the combobox's selected value, before executing JQuery trigger "change" event for it to pick up the saved selected value. No matter what I do, the saved selected ...
fletchsod's user avatar
  • 3,779
0 votes
2 answers
3k views

Wondering if anyone can help because no one out there has given a solution this problem! How do you wait for a dynamically loaded element (e.g. a specific div of another .html page) to first be fully ...
tyberius7's user avatar
0 votes
0 answers
113 views

Code How to fire click trigger on ajax generated html tag Is Working $(document).on("click","#Copyright #disclaimer_btn_trg",function(e){ alert($( "#DesclaimerButton span" ).html()); }); Is ...
Krupal Patel's user avatar
  • 1,497
1 vote
1 answer
7k views

I need to reset radio buttons and checkboxes within a form via code when needed. I am using an indirect approach, where I have placed a reset button and hidden it using CSS. <form class="form-...
RandomUser's user avatar
  • 1,853
0 votes
3 answers
240 views

The goal is to pass parametres through event.data, here is complete example where I tested it : http://jsfiddle.net/ $el.trigger( $.Event('click.NGB', { example: '1' })); $el.trigger( $.Event('click....
Virgili Garcia's user avatar
2 votes
1 answer
1k views

I am using custom events to broadcast navigation messages (between related plugins). The simple trigger code currently looks like this: $button.trigger('navigate', { url: link, target: target }); ...
iCollect.it Ltd's user avatar
3 votes
1 answer
2k views

I previously had the following $('#refresh').click(function () { $('#fileUpload').trigger('click'); }); However I've changed it so it should fire on a query parameter function ...
pee2pee's user avatar
  • 3,797
0 votes
0 answers
97 views

I am cloning a select element which trigger a custom event "combobox". when I clone the select element, custom events are not cloned. <select id="country"> <option value="Australia">...
B L Praveen's user avatar
  • 2,008
2 votes
2 answers
2k views

When you .trigger("focus") in IE, jQuery won't "see" the async focus event which will occur later, so it fires one of its own to ensure that a focus event always occurs as described above. This causes ...
KeenUser's user avatar
  • 5,575
1 vote
1 answer
164 views

I'm making tabbed content in Yii manually, so the content would load data from AJAX. I'm using ajaxLink() and it works fine. The selected tab ID is stored in session so when I reload the page, the ...
tuks's user avatar
  • 800
0 votes
0 answers
119 views

http://jquery.com/upgrade-guide/1.9/ I got this below detail from the link. But what is it that is changing in trigger(click) event? I wasnt clear with this below explanation. link Checkbox/radio ...
KeenUser's user avatar
  • 5,575
1 vote
2 answers
96 views

Steps to reproduce: i created a hai.html and using pagemod i injected scripts into that, here is the code and that hai.html https://github.com/suneeshtr/trigger-test.git Actual results: injection ...
Suneesh's user avatar
  • 265
2 votes
2 answers
239 views

I have a simple list with a sublist <div id="master"> <ul> <li><div>Trigger Me!</div></li> <li><div>Trigger Me!</div></li> <...
DominikAmon's user avatar
  • 1,156
0 votes
2 answers
124 views

I have a sortable (made of nested <div></div>) on my webpage. I would like that an item dragged out of the sortable be removed from the sortable. But I can't get the "out" event to be ...
Chapo's user avatar
  • 2,663
0 votes
1 answer
158 views

I have two DropDowns, on change event of one Drop Down, i haved filled the 2nd Drop Down. when i trigger the change event of first drop down on Arrow Keys, its not working, while on Mouse click its ...
Shahid Iqbal's user avatar
  • 2,133
1 vote
3 answers
8k views

I am trying to simulate a javascript to choose from the dropdown list below. I am trying this code here but its not working. $('select[name="srctype"]').val(2).trigger('change'); Am i doing ...
soniccool's user avatar
  • 6,078
-1 votes
1 answer
201 views

I have a function that does a calculation on an input, I have a function in another script I want to run when the value of the input changes. I try to do with the change event but does not register ...
Marztres's user avatar
  • 470
1 vote
0 answers
174 views

I have created a couple of custom events, "check" and "uncheck". I can easily use jQuery to implement these like this: $("input:checkbox,input:radio").on("click",function(){ if (j$(this).is(":...
Samuel Reid's user avatar
  • 1,776
1 vote
1 answer
41 views

The following code works. It allows you to press the enter and escape buttons. Here is a jsFiddle $(document).on('keydown', function(e){ if (e.which == 13){ // Enter Key pressed } }); ...
Jacob Valenta's user avatar
2 votes
1 answer
2k views

Click an element using triggerHandler() works: $element = $('#gwt-debug-location-pill-edit-div:visible'); $element.triggerHandler('click'); But, clicking it using trigger(), doesn't: $element....
Misha Moroshko's user avatar
9 votes
2 answers
5k views

I am adding a click event to a checkbox which will show/hide additional fields depending on its checked status. I want the handler to fire on load to set up the initial page structure. For some ...
Rumpleteaser's user avatar
  • 4,244
36 votes
4 answers
29k views

Out of curiosity -- what is the purpose of / use cases for jQuery's triggerHandler? As far as I can tell, the only "real" differences between trigger and triggerHandler is whether or not the native ...
David Eads's user avatar
  • 1,512