From 09c67b0700a153815ab2886da39a600334f46541 Mon Sep 17 00:00:00 2001 From: davidbankes Date: Mon, 23 Jun 2014 09:54:50 -0400 Subject: [PATCH] modified cursor for disabled options I very much doubt this is how you'll want this to work, but here's at least a proof of concept idea for you. --- selects-v1.2.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/selects-v1.2.js b/selects-v1.2.js index 11a8b9a..4d5255e 100644 --- a/selects-v1.2.js +++ b/selects-v1.2.js @@ -194,9 +194,10 @@ $.fn.selects = function(_args) { option : ' data-option="' + $(this).index() + '"', selected : ' data-selected="' + $(this).attr('selected') + '"', disabled : $(this).attr('disabled') ? ' data-disabled="disabled"' : '' + cursor : $(this).attr('disabled') ? 'default' : 'pointer' }; - self.dropdown.append('
  • ' + $(this).html() + '
  • '); + self.dropdown.append('
  • ' + $(this).html() + '
  • '); }); @@ -673,4 +674,4 @@ $.fn.selects = function(_args) { }; /* End Plugin ======================================================================================= */ -})(jQuery); \ No newline at end of file +})(jQuery);