Backbonejs how to pass the parameter in this.model.destroy()

In template:-   <a class=”btn btn-danger” id=”delete”> Delete </a> In Views:-   events: { “click #delete”: “deleteConfirm” }, deleteConfirm: function() { if (!confirm(“Want to delete ?”)) { return; } else { this.delete(); } }, delete: function() { this.model.destroy({ data: $.param({ address: add }), success: function()…

Enable disable click button function using JQuery

In Script:- if(searchComponent.device_address.toString()!=””){ $(‘#rowFirmwareAction’).removeClass(“disable_a_href”); } else{ $(‘#rowFirmwareAction’).addClass(“disable_a_href”); } In CSS:- .disable_a_href { pointer-events: none; opacity: 0.5; } IN HTML (Bootstrap):- <div class=”row disable_a_href” id=”rowFirmwareAction”> <div class=”col-md-12″> <a class=”btn btn-success btn-lg btn-block” id=”start”>Start</a> </div> </div>

Free jQuery Courses and Training material

In this post, we bring you a list of Free jQuery Course and Training Material which are useful from beginner to an expert. Of course, this blog has some useful, handy material but the below list has some serious and exceptional training materials which are…

how to download the programs in jsFiddle

You have to put /show a after the URL you’re working on:   http://jsfiddle.net/<your_fiddle_id>/show/   It is the site that shows the results. And then when you save it as a file. It is all in one HTML-file. For example:   http://jsfiddle.net/Ua8Cv/show/   for the…

jQuery code to disable double click event

jQuery code to disable double click event on the webpage. $(document).ready(function(){ $(“*”).dblclick(function(e){ e.preventDefault(); }); }); Above jQuery code will disable double click event for all the controls on the webpage. If you want to disable for specific control, let’s say a button with ID “btnSubmit”…

Informative Links::: jQuery

Know the Basics http://www.elijahmanor.com/2012/02/differences-between-jquery-bind-vs-live.html http://www.elijahmanor.com/2012/10/dont-initialize-all-things-in.html Inside jQuery functions: http://jsapi.info/ Enterprise jQuery http://enterprisejquery.com/ Building Large-Scale jQuery Applications http://addyosmani.com/blog/large-scale-jquery/ Parallax scrolling http://johnpolacek.github.com/scrolldeck.js/ http://jonraasch.com/blog/scrolling-parallax-jquery-plugin http://www.netmagazine.com/tutorials/building-parallax-scrolling-storytelling-framework http://en.wikipedia.org/wiki/Parallax_scrolling http://stephenmcintyre.net/blog/jquery-parallax-scrolling/ Examples: http://activatedrinks.com/ http://www.newzealand.com/us/ http://www.laurentiuswonen.com/jaarverslag2010 http://www.smartusa.com/ Essential jQuery Plugin Patterns http://coding.smashingmagazine.com/2011/10/11/essential-jquery-plugin-patterns/ jQuery responsive design toolkit, HTML5 ▰ Mobile-first optimized http://responsejs.com http://jonraasch.com/blog/scrolling-parallax-jquery-plugin

jQuery UI Dragging with containment

<!doctype html> <html> <head> <meta charset=”utf-8″ /> <title>jQuery UI Dragging with containment</title> <style type=”text/css”> <!– #drg {     width:380px;     height:210px;     border:2px solid blue; } #prt {     width:305px;     height:100px;     margin:8px;     background:#F90; } #prt p {     width:185px;     margin:1px;    …