Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function copyInputValuesFrom(source) {
- var fieldElements = $(source).find('input, select');
- $(fieldElements).each(function(idx, item) {
- var matchElementId = $(item).attr('id');
- if ($(item).is('select')) {
- setDropDownValue(matchElementId, $(item).val());
- } else if ($(item).is('input')) {
- setInputValue(matchElementId, $(item).val());
- }
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement