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 Tuesday 06th of March 2018 11:41:12 PM
your client: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
current time: Friday 19th of April 2024 03:24:59 AM