$('#formID :input') will select all input fields (including textarea's and buttons) on a form with id=formID so your function would look like this $('#preferencesBody'). Delegate(':input', 'change', function() { var key = $(this). Attr('data-key'); var value = $(this).val(); Preferences.
SaveUserPreferences(key, value); }).
$('#formID :input') will select all input fields (including textarea's and buttons) on a form with id=formID so your function would look like this.. $('#preferencesBody'). Delegate(':input', 'change', function() { var key = $(this). Attr('data-key'); var value = $(this).val(); Preferences.
SaveUserPreferences(key, value); }).
– Saxman Jul 21 at 17:00 you should check for that inside the saveUserPreferences() function – Greg Guida Jul 21 at 18:14 I KNOW where to check, and of course I can do a zillian things to check for it (call my database to get the current value, store the current value, etc...) I was reading the other article (in my original post) and wonder how to make it work across multiple inputs, as I think the solution in that post (for a single element) is brilliant. – Saxman Jul 21 at 18:45.
I've rolled my own implementation, using an additional attribute when binding my data, and checking the value against the value of the additional attribute, i. E: $('#preferencesBody'). Delegate('inputtype="text":not(.password)', 'blur', function() { var value = $(this).val(); var currentValue = $(this).
Attr('data-currentvalue'); if (value! == currentValue) { $(this). Attr('data-currentvalue', value); Preferences.
SaveUserPreferences(value); } }).
I've rolled my own implementation, using an additional attribute when binding my data, and checking the value against the value of the additional attribute, i. Var currentValue = $(this). Terms of service.
Not the answer you're looking for?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.