| jquery Programming Glossary: improvedWhat are the significant differences among $(sel).bind(“click”, $(sel).click(, $(sel).live(“click”, $(sel).on(“click”? http://stackoverflow.com/questions/11148019/what-are-the-significant-differences-among-sel-bindclick-sel-click  it to deliver the same results previous version do but improved and optimised. To quote from the documentation As of jQuery.. always assume that the latest additions are optimised and improved on any of the drawbacks of previous versions unless otherwise.. 
 jQuery Validate - require at least one field in a group to be filled http://stackoverflow.com/questions/1300994/jquery-validate-require-at-least-one-field-in-a-group-to-be-filled  custom validation method which was very helpful. I improved this in three ways To let you pass in a selector for the group.. 
 Get the offset position of the caret in a textarea in pixels http://stackoverflow.com/questions/16212871/get-the-offset-position-of-the-caret-in-a-textarea-in-pixels  to the caret position. This approach can still be improved upon I'm sure I haven't thought of everything that could possibly.. 
 JQuery UI Tabs caching http://stackoverflow.com/questions/2624228/jquery-ui-tabs-caching  static. There may be unforseen issues and can certainly be improved. function .extend .ui.tabs.prototype _load25624 .ui.tabs.prototype.load.. 
 How do you make an element “flash” in jQuery http://stackoverflow.com/questions/275931/how-do-you-make-an-element-flash-in-jquery  #FFFF9C .animate backgroundColor #FFFFFF 1500 Edit New and improved The following uses the same technique as above but it has the.. 
 Test if links are external with jQuery / javascript? http://stackoverflow.com/questions/2910946/test-if-links-are-external-with-jquery-javascript  match all href #anchor links as external too. It might be improved by doing some extra RegExp checking.  share improve this answer.. 
 Asynchronous Controller is blocking requests in ASP.NET MVC through jQuery http://stackoverflow.com/questions/2927726/asynchronous-controller-is-blocking-requests-in-asp-net-mvc-through-jquery  your asynchronous operations you're very unlikely to see improved performance. The second issue is that ASP.NET MVC takes a Session.. 
 Get list of data-* attributes using javascript / jQuery http://stackoverflow.com/questions/4187032/get-list-of-data-attributes-using-javascript-jquery  Eyeballing the source helped me fix my own code and improved my javascript fu . Here's the solution I came up with function.. 
 jqgrid showLink http://stackoverflow.com/questions/4390999/jqgrid-showlink  about the row id additionally. UPDATED Look at the improved code from the performance side of loadComplete in another answer.. 
 jQuery click / toggle between two functions http://stackoverflow.com/questions/4911577/jquery-click-toggle-between-two-functions  don't say this is the best implementation I bet it can be improved in terms of performance And then call it with '#test' .clickToggle.. 
 Linking from a column value in jqGrid to a new page using GET http://stackoverflow.com/questions/5010761/linking-from-a-column-value-in-jqgrid-to-a-new-page-using-get  wiki text  e.preventDefault   You can see that the improved version of the demo works exactly as the original demo . To.. 
 Using Fancybox with Image map http://stackoverflow.com/questions/5530871/using-fancybox-with-image-map  'content' content  See it working here The above could be improved to support multiple images and maps by doing something like.. 
 jqGrid Reposition Delete Confirmation Box http://stackoverflow.com/questions/5719490/jqgrid-reposition-delete-confirmation-box  will be placed over the selected row. The code can be improved for the case when the selected row in the last row and the bottom.. 
 Keyboard shortcuts with jQuery http://stackoverflow.com/questions/593602/keyboard-shortcuts-with-jquery  John Resig the primary author of jQuery has forked and improved the js hotkeys project. His version is available at http github.com.. 
 How do you get JavaScript/jQuery Intellisense Working in VS 2008? http://stackoverflow.com/questions/59766/how-do-you-get-javascript-jquery-intellisense-working-in-vs-2008  VS 2008  I thought JQuery Intellisense was supposed to be improved with SP1. I even downloaded an annotated version of jquery 1.2.6.. 
 $(document).ready(function(){}); vs script at the bottom of page http://stackoverflow.com/questions/6026645/document-readyfunction-vs-script-at-the-bottom-of-page  wide event handler to copy with this. That way you get the improved load time but if they try to do something too early you can.. 
 ASP.net MVC 3 jQuery Validation; Disable Unobtrusive OnKeyUp? http://stackoverflow.com/questions/8022695/asp-net-mvc-3-jquery-validation-disable-unobtrusive-onkeyup  the same solution and found that the answer here could be improved so I thought it would be nice to share it here.  share improve.. 
 Confirm delete modal/dialog with Twitter bootstrap? http://stackoverflow.com/questions/8982295/confirm-delete-modal-dialog-with-twitter-bootstrap  a look http jsfiddle.net MjmVr 3 Update . Here is slightly improved version http jsfiddle.net MjmVr 819   share improve this answer.. 
 Access CSS file contents via JavaScript http://stackoverflow.com/questions/9180184/access-css-file-contents-via-javascript  to me and should be tested and verified. it also should be improved with some fallback if javascript is not available. CSS external.. 
 What are the significant differences among $(sel).bind(“click”, $(sel).click(, $(sel).live(“click”, $(sel).on(“click”? http://stackoverflow.com/questions/11148019/what-are-the-significant-differences-among-sel-bindclick-sel-click  in version 1.7. on has several method signatures enabling it to deliver the same results previous version do but improved and optimised. To quote from the documentation As of jQuery 1.7 the .on method provides all functionality required for attaching.. there should be no harm in using those methods but I would always assume that the latest additions are optimised and improved on any of the drawbacks of previous versions unless otherwise stated by the documentation as it is in the case of live ... 
 jQuery Validate - require at least one field in a group to be filled http://stackoverflow.com/questions/1300994/jquery-validate-require-at-least-one-field-in-a-group-to-be-filled  no built in way to do this I searched and found Rebecca Murphey's custom validation method which was very helpful. I improved this in three ways To let you pass in a selector for the group of fields To let you specify how many of that group must.. 
 Get the offset position of the caret in a textarea in pixels http://stackoverflow.com/questions/16212871/get-the-offset-position-of-the-caret-in-a-textarea-in-pixels  that the top and the left value of the #nextword span are equivalent to the caret position. This approach can still be improved upon I'm sure I haven't thought of everything that could possibly go wrong and even if I have then I haven't bothered implementing.. 
 JQuery UI Tabs caching http://stackoverflow.com/questions/2624228/jquery-ui-tabs-caching  a quick extension to do just that assuming the tabs are static. There may be unforseen issues and can certainly be improved. function .extend .ui.tabs.prototype _load25624 .ui.tabs.prototype.load itemOptions load function index  index this._getIndex.. 
 How do you make an element “flash” in jQuery http://stackoverflow.com/questions/275931/how-do-you-make-an-element-flash-in-jquery  use the following code div .stop .css background color #FFFF9C .animate backgroundColor #FFFFFF 1500 Edit New and improved The following uses the same technique as above but it has the added benefits of parameterized highlight color and duration.. 
 Test if links are external with jQuery / javascript? http://stackoverflow.com/questions/2910946/test-if-links-are-external-with-jquery-javascript 
 Asynchronous Controller is blocking requests in ASP.NET MVC through jQuery http://stackoverflow.com/questions/2927726/asynchronous-controller-is-blocking-requests-in-asp-net-mvc-through-jquery  down to is that if you can't use I O completion ports for your asynchronous operations you're very unlikely to see improved performance. The second issue is that ASP.NET MVC takes a Session lock on all requests. Multiple requests within a single.. 
 Get list of data-* attributes using javascript / jQuery http://stackoverflow.com/questions/4187032/get-list-of-data-attributes-using-javascript-jquery  just for a fraction of its functionality seemed like an overkill. Eyeballing the source helped me fix my own code and improved my javascript fu . Here's the solution I came up with function getDataAttributes node var d  re_dataAttr ^data . .each node.get.. 
 jqgrid showLink http://stackoverflow.com/questions/4390999/jqgrid-showlink 
 jQuery click / toggle between two functions http://stackoverflow.com/questions/4911577/jquery-click-toggle-between-two-functions  tc 1 2  return this jQuery DEMO Disclaimer I don't say this is the best implementation I bet it can be improved in terms of performance And then call it with '#test' .clickToggle function this .animate width 260px 1500 function this.. 
 Linking from a column value in jqGrid to a new page using GET http://stackoverflow.com/questions/5010761/linking-from-a-column-value-in-jqgrid-to-a-new-page-using-get  ' id '. Link contain ' text '  location.href http en.wikipedia.org wiki text  e.preventDefault   You can see that the improved version of the demo works exactly as the original demo . To show the performance of the method on 1000 rows I created one.. 
 Using Fancybox with Image map http://stackoverflow.com/questions/5530871/using-fancybox-with-image-map  'title' 'Single image with a map' 'titlePosition' 'inside' 'content' content  See it working here The above could be improved to support multiple images and maps by doing something like this HTML img src path to small image rel #Map title Single.. 
 jqGrid Reposition Delete Confirmation Box http://stackoverflow.com/questions/5719490/jqgrid-reposition-delete-confirmation-box   dialog.offset selRowCoordinates    In the example the dialog will be placed over the selected row. The code can be improved for the case when the selected row in the last row and the bottom part of the dialog is outside of the window. Nevertheless.. 
 Keyboard shortcuts with jQuery http://stackoverflow.com/questions/593602/keyboard-shortcuts-with-jquery 
 How do you get JavaScript/jQuery Intellisense Working in VS 2008? http://stackoverflow.com/questions/59766/how-do-you-get-javascript-jquery-intellisense-working-in-vs-2008  do you get JavaScript jQuery Intellisense Working in VS 2008  I thought JQuery Intellisense was supposed to be improved with SP1. I even downloaded an annotated version of jquery 1.2.6 but intellisense will not work in a separate jscript file... 
 $(document).ready(function(){}); vs script at the bottom of page http://stackoverflow.com/questions/6026645/document-readyfunction-vs-script-at-the-bottom-of-page  inline script element in the head that sets up a document wide event handler to copy with this. That way you get the improved load time but if they try to do something too early you can either tell them that or better queue the thing they wanted.. 
 ASP.net MVC 3 jQuery Validation; Disable Unobtrusive OnKeyUp? http://stackoverflow.com/questions/8022695/asp-net-mvc-3-jquery-validation-disable-unobtrusive-onkeyup 
 Confirm delete modal/dialog with Twitter bootstrap? http://stackoverflow.com/questions/8982295/confirm-delete-modal-dialog-with-twitter-bootstrap 
 Access CSS file contents via JavaScript http://stackoverflow.com/questions/9180184/access-css-file-contents-via-javascript  use only one request to the CSS but it seems a bit hacky to me and should be tested and verified. it also should be improved with some fallback if javascript is not available. CSS external file test.css div border 3px solid red HTML jQuery doctype.. 
 |