MoreOnFew.com – Read tutorials related to JavaScript, jQuery, HTML5, CSS3 and more !
How to replace text in JavaScript
Working with text or strings in JavaScript is really interesting. In fact text or "String" as it is called in JavaScript is the most common data type that a JavaScript programmer would encounter quite often. And many a times your would come across scenarios where you...
read moreWhat is the difference between Number.isInteger() and Number.isSafeInteger() in JavaScript ?
As a part of ES6 (also known as ECMAScript 2015 or ECMAScript 6), there are a couple of new JavaScript features and methods introduced. Today we would be concentrating on just two of them i.e Number.isInteger() and Number.isSafeInteger(). What is Number.isInteger() ?...
read moreHow to detect support for a CSS feature using @supports ?
With many new CSS features being introduced regularly it has become important to check for the support of these newer CSS properties before we use them. While there are feature detection tools like Modernizr etc, not every time do we actually require to load a...
read moreHow to make or convert LTR website to a RTL or Right-to-left Website?
I'm sure all of us want our websites to be visited and loved by people all over the world. And yes we would also like it to be shared on social media sites where people from all over the world would come across it. However many a times it might not strike to us that...
read moreUnderstanding only-of-type CSS pseudo class selector
Let's be honest, CSS sometimes can get a little tricky and confusing to understand. Especially with the onset of CSS3 and all these new CSS3 selectors and pseudo classes, it's quite possible that many of us might still be trying to catch up with the new selectors....
read moreWhat are source maps?
With all the optimization techniques like bundling and minification etc getting important and popular it is good that we talk about Source Maps now. Think of this, once you bundle all the css files you have to one single file, how do you know which part of CSS was...
read moreWhat are CSS Preprocessors?
A lot is being discussed about CSS Preprocessors in the recent times. But then what are they? Is it another framework like Bootstrap? Well, the answer is No. It is not another CSS framework. Preprocessors in general are programs that take one type of data as an input...
read moreHow to use Glyphicons in bootstrap?
Like many other useful components, Bootstrap also provides a lot of easy to use Glyphicon "icons". Well in simple terms these contain a list of useful font icons that you can easily use on your webpage. These font icons allows you to use over 250 glyphs or icons on...
read moreHow to disable selection of text in html using CSS ?
Depending on your requirement you might have to disable text selection or text highlighting in HTML using CSS or JavaScript. While there are different ways to do this, you can easily disable text highlighting using CSS. Consider a situation where you have a copy paste...
read moreHow to set proxy using npm config in NodeJs?
While working with NodeJs you’ll notice that many a times you might not be able to install or update while working behind a proxy network like the corporate web proxy of your office etc. Basically you might notice that the commands like npm install is not working....
read moreHow to remove or Hide arrow / Spinners from input type number ?
I am sure that by now you would have used various new input types available as a part of HTML5. Many of these input types have eliminated the requirement for JavaScript too in many scenarios. One such new input type is the Input type number. The syntax for the same is...
read moreHow to empty an array in JavaScript ?
Arrays are widely and commonly used in JavaScript. Especially if you are developing a dynamic app, there are very high chances that you might use Arrays in JavaScript. However, many a times I've noticed that people don't use the Array related methods properly and end...
read moreHow to disable autocomplete in HTML?
The autocomplete feature has been of a great help as a website visitor especially if you have a long form that you might fill more than once. The autocomplete feature of HTML is basically used to fetch previous input values from the input field. However, not every...
read moreLoad Timeout for Modules Error in RequireJs
RequireJs is a very helpful JavaScript Module Loader. If you've been working on BackboneJS, AngularJs or KnockoutJs you would have most likely come across RequireJs. Also it is very likely that while working with RequireJs you would have come across the Error : Load...
read moreMake CSS first-child work
With the onset of CSS3 a lot of new selectors were introduced. Many of these new selectors have been of a lot of help to us. The first-child selector is one such selector. Using the first-child selector, you can target the element which is the first child of its...
read moreHow to auto resize an image to fit within a DIV without stretching?
If you are developing a Responsive Webpage or a Fluid Web page, you would have definitely come across scenarios where you wanted to fit in a large image within a smaller DIV without distorting it or breaking the aspect ratio. Well, this can be done easily using the...
read moreHow to remove multiple attributes in jquery?
Many a time you might have come across a scenario where you would want to remove multiple attributes from an element. For example, consider the following DIV : <div id="#rightSection" data-id="xyz" data-module="abc"> .... </div> Now using jQuery's removeAttr()...
read more25 HTML link rel attribute values that you might not have known about
The <link> tag is one of the most primary tags that a lot of us must have been using. This tag is usually found in the <head> section and plays the role of specifying the relationship between the current document and other documents. The most common use of...
read more