3 months, 30% HIKE IN YOUR SALARY or 100% money back – no questions asked //hide the popover on clicking anywhere on the document except itself $(document).click(function(e) { //check whether you clicking on the popup content as it is also part of document $(‘.popover’).click(function(){ return false; // Do nothin }); //clicking on document [...]
3 months, 30% HIKE IN YOUR SALARY or 100% money back – no questions asked
there are lot of things we can pick it up from HTML5 boilerplate. One of the major findings I found from boilerplate is
How to avoid console errors on browsers that lacks console such as IE.
// [...]
3 months, 30% HIKE IN YOUR SALARY or 100% money back – no questions asked
I had requirement for that the client that I should mask the SSN. I came up with a small script using javascript to mask SSN digits
Input:123456789
output:***-**-6789
3 months, 30% HIKE IN YOUR SALARY or 100% money back – no questions asked
I got a requirement to disable cut copy and paste on the confirm email address text box. We have 2 text box one is email address and other confirm email address. User is not suppose to cut,copy or [...]
3 months, 30% HIKE IN YOUR SALARY or 100% money back – no questions asked
$(document).ready(function(){
if($.browser.opera){
$(‘a[href]‘).attr(‘tabindex’, 0);
}
});
3 months, 30% HIKE IN YOUR SALARY or 100% money back – no questions asked
Below are the firefox only and opera only hacks. Its not recommended to use CSS hacks, but sometimes, we need to write CSS hacks to target specific browsers.
/*firefox only hack*/ @-moz-document url-prefix() { .selector{ your declaration } [...]
3 months, 30% HIKE IN YOUR SALARY or 100% money back – no questions asked
After dwelling with time for 2-3 hrs finally got the solution for validation not working for dynamically added inputs. Thought of sharing with you guys.
Once u done with the adding the fields dynamically, to get it validated [...]
3 months, 30% HIKE IN YOUR SALARY or 100% money back – no questions asked
Please drop in your comments if you like it.
Answer for the same you will get at Get answers for all
HTML interview questions
What is Doctype?
What if I [...]
3 months, 30% HIKE IN YOUR SALARY or 100% money back – no questions asked
While working on infinite scroll. Everything worked fine in firefox and other modern browsers. Whereas I could see I have used $(document).scroll(function(){} to trigger the event.
To fix the above not implemented issue in IE, All we need [...]
3 months, 30% HIKE IN YOUR SALARY or 100% money back – no questions asked
Below is the fix for how to populate one dropdown with another using json and Jquery.
HTML
Please Select Beverages Snacks
Please choose from above
Jquery
$(“#json-one”).change(function() { var $dropdown = $(this); $.getJSON(“data.json”, function(data) { var [...]
Latest posts
- bootstrap popover | bootstrap popover hide on click | bootstrap popover hide on document.click
- Avoid console errors in browsers that lack a console | HTML5 boilerplate
- getting started with Sublime editor | how to install zen coding | zen coding for sublime editor
- getting started with backbone | Models in Backbone
- How to delete a model in backbone


