jquery-plugins

Is there a way to use jQuery templates (official plugin) with jQuery UI Autocomplete?

牧云@^-^@ 提交于 2019-12-23 16:02:47
问题 I've found this "hack" to use jTemplates with the jQuery UI Autocomplete: http://www.shawnmclean.com/blog/2011/02/using-jqueryui-autocomplete-with-jtemplates/ but, is there a way to use the official jQuery template plugin with jQuery UI Autocomplete? I would just use the demo in the link, but prefer a cleaner method if possible. (It's necessary to use templates because I'm using them elsewhere in the site and would like to use the consistent layout for the autocomplete items without having to

How to allow keyboard tab focusing on div

≯℡__Kan透↙ 提交于 2019-12-23 13:22:10
问题 I made a message box on which there are two buttons on it. Basically it's a jQuery plugin, that popup with the overlay effect. But when message box appears, and user press the tab button then the message dialog do not focus. So how can i do it then if my message box appear, then focus go to my message box automatically? and when focus lose and user press the tab button again then it again comeback to my message dialig If i click on the message box with the mouse and then press the tab button,

jQuery pluggin -> Zepto; $.fn.extend is undefined

拈花ヽ惹草 提交于 2019-12-23 13:02:37
问题 I am new to zepto, and am using it as a jQuery replacement for the mobile part of a website. So zepto doesn't have $.fn.extend. Fine that's cool with me, but I need my pluggin to work regardless of jquery or zepto. What is zepto's alterative to fn.extend? How would you go about making a cross library extension? I've yet to find any documentation on this. $.fn.extend({ lineRedNAddClass : function(option){ $(this).css('border','red 1px solid').addClass(option); } }); can this be made to work

jQuery Tooltip that doesn't use the <title> attribute

我们两清 提交于 2019-12-23 12:53:25
问题 I'm looking for a jQuery tooltip plugin that doesn't use the <title> attribute. I've tried a few variations so far including; Tooltipster, PowerTip, jTip and TipTip! They all work but don't all work properly in IE8 (this is a must). They also all use the <title> attribute. I need to be able to use other <html> tags such as <p> etc within the containing block hence the need to not use <title> . A plugin that uses <div> or similar would be perfect as I can then customise to how I want and use

jQuery Tooltip that doesn't use the <title> attribute

安稳与你 提交于 2019-12-23 12:53:08
问题 I'm looking for a jQuery tooltip plugin that doesn't use the <title> attribute. I've tried a few variations so far including; Tooltipster, PowerTip, jTip and TipTip! They all work but don't all work properly in IE8 (this is a must). They also all use the <title> attribute. I need to be able to use other <html> tags such as <p> etc within the containing block hence the need to not use <title> . A plugin that uses <div> or similar would be perfect as I can then customise to how I want and use

TinyMCE JQuery Plugin is not always updating textareas

限于喜欢 提交于 2019-12-23 12:42:58
问题 We have a form that has quite a few textareas (in some cases, as many as 20). Each of these textareas are transformed into wysiwyg editors via the TinyMCE jquery plugin as follows: var tinymceoptions = { script_url: '/Scripts/tiny_mce/tiny_mce.js', theme: "advanced", mode: "textareas", elements: "text,html1", theme_advanced_buttons1: "bold,italic,underline,formatselect,separator,image,insertfile,separator,blockquote,bullist,numlist,separator,undo,redo,separator,link,unlink,separator,code

jQuery tokenInput plugin (and focus)

三世轮回 提交于 2019-12-23 11:34:22
问题 Is anyone using tokeninput plugin and successfully setting focus on a token input field? I'm trying to achieve this. Solved: In case anyone else needs, the solution: $(document).ready(function() { $("#YourTokenInput").tokenInput("http://shell.loopj.com/tokeninput/tvshows.php", { theme: "facebook" }).focus(); }); 回答1: OP's solution didn't work for me. Not sure if it is a browser issue, or a issue with the elements being loaded in time, or what, but this is what I had to do (after initializing

Multiple containers in Lazy Load

て烟熏妆下的殇ゞ 提交于 2019-12-23 09:39:26
问题 I am trying to apply Lazy Load plugin to multiple containers. I found this similar question: Lazy Load on MULTIPLE horizontal containers. this is my attempt: http://jsfiddle.net/BAFMC/ $(".p_outer_content").each(function() { var tthis = $(this); $(this).find('img').lazyload({ container: tthis }); });​ But I have the same problem as the question mentioned, which is that Lazy load only applies to the last container (.p_outer_content) (which is the third one in the fiddle). Does anyone know how

How to get current date using jquery?

北战南征 提交于 2019-12-23 09:17:36
问题 I am using a calender plug-in and I want to populate the current date into a text field. How can I do this using jquery? 回答1: You can get current date in JavaScript: var now = new Date(); If you are using jQuery DatePicker you can apply it on any textfield like this: $('input.youTextFieldClass').datepicker({ dateFormat: 'mm/dd/yy', changeMonth: true, changeYear: true, yearRange: '-70:+10', constrainInput: false, duration: '', gotoCurrent: true}); If you want to set current date in textfields

Twitter Bootstrap 2: Navbar submenu links do not work

此生再无相见时 提交于 2019-12-23 07:47:21
问题 After updating to Twitter Bootstrap 2.0 (which is awesome), the navigation links inside submenus do not work. jQuery is at 1.7.1. The Dropdowns actually work, and the markup is correct (according to the docs): <!-- start navbar --> <div class="navbar navbar-fixed-top" id="navbar"> <!-- start navbar-inner --> <div class="navbar-inner"> <!-- start container-fluid --> <div class="container-fluid"> <?php echo anchor('home', 'SCAA', array('class' => 'brand')); ?> <ul class="nav"> <li class=