How to

How to do certain thing in web development

Check or uncheck a checkbox with jQuery is a simple task and can be achieved very easily. If you are using jQuery 1.5 and below you need to use .attr(). Here it is To check use $(‘.checkbox’).attr(‘checked’,’checked’); To uncheck use $(‘.checkbox’).removeAttr(‘checked’); But...

More
  • May 12, 2014

One can easily scale background in CSS to any dimension to fit its container. 100% CSS background is good looking and gives bump to your design. Here is how this can be done. #MyID { background-size: 70% 60%; /* 70% width and...

More
  • May 10, 2014

Since XMLHttpRequest ,or the equivalent, object is returned by jQuery, so you can simply use abort function. To cancel ajax requests you have to follow below code. var myRequest= $.ajax({ type: “POST”, url: “file.php”, data: “name=you&class=10”, success: function(e){ alert( “Awesome : “...

More
  • May 9, 2014

Many web apps , these days, modify or change URL without refreshing web page. Facebook is a great example. This seems quite fast and index-able too. This is supported by Chrome, Safari, FF4+, and IE10 & above. function processAjaxData(answer, url){ document.getElementById(“mycontainer”).innerHTML =...

More
  • May 3, 2014
8 Best Free Stock Video Websites for Tiktok, Reels, and Shorts Top 5 PHP Frameworks: Fast and Secure