Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function aaa(inputs) {
- console.log('0', inputs);
- function findHint(input) {console.log('find');
- var t, inp = $(input);
- if (inp.attr('hint')) {console.log('hint', inp.attr('hint'), $('#hintText_' + inp.attr('hint')).length);
- return $('#hintText_' + inp.attr('hint'));
- } else {
- t = inp.closest('.line');
- return t.find('.field_hint');
- }
- }
- (inputs || $(':text'))
- .off('focus').on('focus', function() {console.log('focus');
- findHint(this).show();
- })
- .off('blur').on('blur', function() {console.log('blur');
- findHint(this).hide();
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment