Instead of trigger("click")
you can use the following code which works successfully in all browsers:
var evt = document.createEvent("HTMLEvents");
evt.initEvent("click", true, true);
document.getElementById(elem_id).dispatchEvent(evt);
More Related Contents:
- Distinguish Chrome from Safari using jQuery.browser
- Disable scrolling when changing focus form elements ipad web app
- Maintain PHP Session in web app on iPhone
- iOS Safari – How to disable overscroll but allow scrollable divs to scroll normally?
- Get the real width and height of an image with JavaScript? (in Safari/Chrome)
- jQuery .load() call doesn’t execute JavaScript in loaded HTML file
- How can I recognize touch events using jQuery in Safari for iPad? Is it possible?
- HTML5 Video tag not working in Safari , iPhone and iPad
- iPad Web App: Detect Virtual Keyboard Using JavaScript in Safari?
- How do I use jQuery for click event in iPhone web application
- WebKit issues with event.layerX and event.layerY
- iPad/iPhone browser crashing when loading images in Javascript
- Does overflow:hidden applied to work on iPhone Safari?
- what’s faster? CSS3 transitions or jQuery animations?
- jQuery click event not working in mobile browsers
- iPad/iPhone hover problem causes the user to double click a link
- jQuery get the location of an element relative to window
- Preventing default context menu on longpress / longclick in mobile Safari (iPad / iPhone)
- Get the value of -webkit-transform of an element with jquery
- JQuery Hide Option doesn’t work in IE and Safari
- How can I make a jQuery UI ‘draggable()’ div draggable for touchscreen?
- iPad HTML Focus
- Selecting text on focus using jQuery not working in Safari and Chrome
- Click event called twice on touchend in iPad
- Why Safari shows “No Inspectable Applications” during remote debugging with iOS 6 device?
- Determine vertical direction of a touchmove
- Mobile Safari $(window).height() URL bar discrepancy
- jQuery Validation Plugin – adding rules that apply to multiple fields
- How can I tell if a particular CSS property is inherited with jQuery?
- jQuery UI – Droppable only accept one draggable