Guest User

Untitled

a guest
Mar 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. $.fn.setValue = function(value) {
  2. var $el = $(this);
  3. if ($el.prop('type') == 'checkbox') {
  4. $el.prop('checked', true);
  5. } else {
  6. $el.val(value);
  7. }
  8. };
Add Comment
Please, Sign In to add comment