Kangry.com [insert cool graphic here]
home | Topics | Logout | Search | Contact | ?? Kangry ?? | Bandwitdh
Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor

Name

Password

New user

uploaded files
(links)-> (Parent)->javascript/jquery trigger input event submited by Russell Fri 08 Jun 12
Web kangry.com
This is a hack, I needed to do this because my code would update the value stored in a input textbox, but it didn't trigger the update function that would be called if the user changed the value manually.

This function updates the value of a textbox with the id "party_size" and then triggers the "blur" event that would normally happen if the user changed the value manually.
function update_party(x)
{
var temp = document.getElementById('party_size');
temp.value=x;
var e = jQuery.Event("blur");
$("#party_size").trigger(e);

};







Add comment or question...:
Subject:
Submited by: NOT email address. Leave blank for anonymous    (Spam Policy)

Enter Text: (text must match image for posting)




This file (the script that presented the data, not the data itself) , last modified Wednesday 03rd of December 2014 09:40:39 AM
your client: CCBot/2.0 (http://commoncrawl.org/faq/)
current time: Thursday 17th of August 2017 05:14:02 PM