submited by Russell Fri 08 Jun 12|
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.
var temp = document.getElementById('party_size');
var e = jQuery.Event("blur");
Add comment or question...: