Advertisements
Frequently Asked Questions
The idea behind creating this section is to provide you quick and working solutions for the common tasks and issues related to web design and development.
HTML / CSS
This section contains a collection of frequently asked questions related to HTML and CSS
- How to write comments in HTML
- How to write comments in CSS
- How to remove dotted line around the links using CSS
- How to align text vertically center in a DIV element using CSS
- How to set the height of a DIV to 100% using CSS
- How to align a DIV horizontally center using CSS
- How to change the background transparency without affecting the child elements
- How to define style sheet only for Internet Explorer
- How to show hide dropdown menu on mouse hover using CSS
- How to remove white space underneath an image using CSS
- What is the maximum length of title and meta description tag in HTML
- How to highlight alternate table row using CSS
- How to fix CSS collapsing parent issue
- How to create custom cursor using CSS
- How to apply shadow effect on elements using CSS
- How to apply shadow effect on text using CSS
- How to disable spell checking in HTML forms
- How to create drop caps effect using CSS
- How center align absolute positioned DIV horizontally using CSS
- How to add border to an element on mouse hover without affecting the layout in CSS
- How to apply CSS opacity in IE7 and IE8 browsers
- How to create 3D flipping effect on mouse hover using CSS
- How to animate text color on mouse hover using CSS
- How to animate background-color of an element on mouse hover using CSS
- How to transform image size on mouse hover without affecting the layout in CSS
- How to make a DIV element editable in HTML
- How to disable resizable property of textarea using CSS
- How to expand select box to its default width on focus using CSS
- How to change the default text selection color in the browsers using CSS
- How to remove the space between inline-block elements in CSS
- How to disable text selection highlighting in the browsers using CSS
- How to change input field or textarea placeholder text color using CSS
- How to truncate long string with ellipsis using CSS
- How to create triangle or caret icons using CSS
- How to remove outline around text input boxes in chrome using CSS
- How to apply multiple background images to an element using CSS
- How to create fixed header or footer using CSS
- How to create two DIV elements with same height side by side in CSS
- How to set table cellpadding and cellspacing in CSS
- How to remove cellspacing from tables using CSS
- How to place border inside of a DIV element using CSS
- How to change image on hover with CSS
- How to position text over an image using CSS
- How to create an HTML button that acts like a link
- How to create a vertical line in HTML
- How to change the cursor into a hand pointer on hover using CSS
- How to make a DIV not larger than its contents using CSS
- How to auto resize an image to fit into a DIV container using CSS
- How to change the color of an HR element using CSS
- How to create an unordered list without any bullets in HTML
- How to overlay one div over another DIV using CSS
- How to stretch and scale an image in the background with CSS
- How to disable a link using only CSS
- How to vertically align an image inside a DIV using CSS
- How to align content of a DIV to the bottom using CSS
- How to make a placeholder for a select box in HTML
JavaScript / jQuery
This section contains a collection of frequently asked questions related to JavaScript and jQuery
- How to write comments in JavaScript
- How to show and hide DIV elements based on the selection of radio buttons in jQuery
- How to show and hide DIV elements based on the click of checkboxes in jQuery
- How to show and hide DIV elements based on dropdown selection in jQuery
- How to define a function in jQuery
- How to define a function in JavaScript
- How to call a function after waiting for some time in jQuery
- How to add CSS properties to an element dynamically using jQuery
- How to add attribute to an HTML element in jQuery
- How to remove attribute from an HTML element in jQuery
- How to add elements to DOM in jQuery
- How to remove elements from DOM in jQuery
- How to remove white space from a string using jQuery
- How to find number of characters in a string using jQuery
- How to remove the clickable behavior from a disabled link using jQuery
- How to create custom radio buttons using CSS and jQuery
- How to create custom checkboxes using CSS and jQuery
- How to create custom select boxes using CSS and jQuery
- How to check a checkbox is checked or not using jQuery
- How to create a string by joining the elements of an array in JavaScript
- How to get value of selected radio button using jQuery
- How to get the values of selected checkboxes in a group using jQuery
- How to bind click event to dynamically added HTML elements in jQuery
- How to set the width of a DIV element dynamically using jQuery
- How to set the height of a DIV element dynamically using jQuery
- How to remove wrapper element but keep the text content intact using jQuery
- How to animate a DIV height based on the content using jQuery
- How to highlight alternate table row using jQuery
- How to get the current page url using jQuery
- How to calculate the number of words in a string using jQuery
- How to find substring between the two words using jQuery
- How to get the value of selected option in a select box using jQuery
- How to get the text inside an element using jQuery
- How to check an element is visible or not using jQuery
- How to populate state dropdown based on selection in country dropdown using jQuery
- How to get the position of an element relative to the document using jQuery
- How to get the position of an element relative to the parent using jQuery
- How to find mouse position relative to the document using jQuery
- How to find mouse position relative to an element using jQuery
- How to get substring from a string using jQuery
- How to show read more link if the text exceeds a certain length using jQuery
- How to get current image size in JavaScript
- How to get original image size in JavaScript
- How to increase and decrease image size using JavaScript
- How to create jQuery slide up and down toggle effect
- How to create jQuery slide left and right toggle effect
- How to animate DIV height on mouse hover using jQuery
- How to animate DIV width on mouse hover using jQuery
- How to play and stop CSS animation using jQuery
- How to disable or enable a form element using jQuery
- How to disable all input controls inside a form using jQuery
- How to check or uncheck radio button dynamically using jQuery
- How to check or uncheck a checkbox dynamically using jQuery
- How to remove first character from a string in jQuery
- How to stop firing event until an effect is finished in jQuery
- How to check if an element exists in jQuery
- How to move an element to left, right, up and down using arrow keys in jQuery
- How to animate opacity of an element on mouse hover using jQuery
- How to hide dropdown menu on click outside of the element in jQuery
- How to toggle text inside an element on click using jQuery
- How to customize file input type box using CSS and jQuery
- How to fire event on file select in jQuery
- How to get selected file name from input type file using jQuery
- How to update DIV content automatically while typing in textarea using jQuery
- How to insert HTML content into an iFrame using jQuery
- How to call a function repeatedly after fixed time interval in jQuery
- How to redirect to another web page using jQuery
- How to check if an element is hidden using jQuery
- How to select all visible or hidden elements in a page using jQuery
- How to add or remove rows inside a table dynamically using jQuery
- How to move an element into another element using jQuery
- How to change href attribute of a hyperlink using jQuery
- How to refresh a page with jQuery
- How to select an element with multiple classes with jQuery
- How to loop through an array in JavaScript
- How to replace character inside a string in JavaScript
- How to explode or split a string in JavaScript
- How to assign block of HTML code to a JavaScript variable
- How to display all items or values in an array using loop in jQuery
- How to get number of elements in a DIV using jQuery
- How to replace all occurrences of a string in JavaScript
- How to check whether a value is numeric or not in jQuery
- How to replace multiple spaces with single space in JavaScript
- How to detect click inside iframe using JavaScript
- How to determine if variable is undefined or null in JavaScript
- How to get element by class name in JavaScript
- How to detect enter key press on keyboard using jQuery
- How to detect the enter key press in a text input field using jQuery
- How to change the background color of a web page using JavaScript
- How to check if a variable exists or defined in JavaScript
- How to get the value of a textarea in jQuery
- How to make the first letter of a string uppercase in JavaScript
- How to create multiline strings in JavaScript
- How to check whether a string contains a substring in JavaScript
- How to encode URL in JavaScript
- How to remove duplicate values from a JavaScript array
- How to remove a property from a JavaScript object
- How to check if a value exists in an array in JavaScript
- How to get day, month and year from a date object in JavaScript
- How to remove a specific item from an array in JavaScript
- How to change the class of an element using JavaScript
- How to convert comma separated string into an array in JavaScript
- How to get the class name of an object in JavaScript
- How to check for an empty string in JavaScript
- How to sort an array of integers correctly in JavaScript
- How to return multiple values from a function in JavaScript
- How to get the current URL with JavaScript
- How to include a JavaScript file in another JavaScript file
- How to detect screen resolution with JavaScript
- How to parse JSON in JavaScript
- How to split a string into an array of characters in JavaScript
- How to dynamically access object property using variable in JavaScript
- How to append values to an array in JavaScript
- How to generate a timestamp in JavaScript
- How to convert JavaScript object to JSON string
- How to add new elements at the beginning of an array in JavaScript
- How to get the value of text input field using JavaScript
- How to adjust iFrame height automatically according to its contents using JavaScript
- How to call multiple JavaScript functions in a single onclick event
- How to store JavaScript objects in HTML5 localStorage
- How to get portion of URL path in JavaScript
- How to add a class to a given element in JavaScript
- How to find the max and min values of an array in JavaScript
- How to check if an object property is undefined in JavaScript
- How to capture browser window resize event in JavaScript
- How to reset a form using jQuery
- How to detect a click outside of an element with jQuery
- How to detect change in a text input box in jQuery
- How to foreach over an array in JavaScript
- How to check if an input field is empty using jQuery
- How to get the children of the this selector in jQuery
- How to check if the mouse is over an element in jQuery
- How to scroll to the top of the page using jQuery
- How to insert an item into an array at a specific index in JavaScript
- How to get the id of the element that fired an event in jQuery
- How to find the sum of an array of numbers in JavaScript
- How to check if an array includes an object in JavaScript
- How to submit a form using jQuery
- How to create a DIV element in jQuery
- How to convert a JS object to an array using jQuery
- How to change the image source using jQuery
- How to select an element by name in jQuery
- How to find an element based on a data-attribute value in jQuery
- How to set CSS background-image property using jQuery
- How to detect a mobile device in jQuery
- How to get the data-id attribute of an element using jQuery
- How to check if object is an array in JavaScript
- How to remove an event handler in jQuery
- How to get the id of an element using jQuery
- How to add options to a select box from a JS object using jQuery
- How to replace innerHTML of a div using jQuery
- How to add LI in an existing UL using jQuery
- How to get the value in an input text box using jQuery
- How to change CSS display property to none or block using jQuery
- How to set the value of input text box using jQuery
- How to change the text of a button using jQuery
- How to loop through elements with the same class in jQuery
- How to allow only numeric value in HTML text input using jQuery
- How to check for a hash in a URL using JavaScript
- How to convert a float number to a whole number in JavaScript
- How to fix $ is not defined error in jQuery
- How to get class list of an element with jQuery
- What is jQuery $(document).ready() equivalent in JavaScript
- How to set or unset a cookie with jQuery
- How to show loading spinner in jQuery
- How to preview an image before it is uploaded using jQuery
- How to get class name using jQuery
- How to sleep before continuing in JavaScript
- How to set value of textarea in jQuery
- How to convert UTC date time to local date time in JavaScript
- How to load local JSON file using jQuery
- How to trigger a click on a link using jQuery
- How to get the class of the clicked element in jQuery
- How to AJAX submit a form in jQuery
- How to count number of rows in a table using jQuery
BOOTSTRAP / SASS
This section contains a collection of frequently asked questions related to Bootstrap framework
- How to open Bootstrap dropdown menu on hover rather than click
- How to add Bootstrap tooltip to an icon
- How to add icons to input submit button in Bootstrap
- How to align Bootstrap modal vertically center
- How to embed YouTube video inside Bootstrap modal
- How to change the default width of Bootstrap modal box
- How to insert close button in Bootstrap popover
- How to make Bootstrap popover appear/disappear on hover instead of click
- How to insert image inside Bootstrap popover
- How to disable tabs in Bootstrap
- How to keep the current tab active on page reload in Bootstrap
- How to launch Bootstrap modal on page load
- How to prevent Bootstrap modal from closing when clicking outside
- How to remove slide down effect from Bootstrap modal
- How to set focus on input field or textarea inside a Bootstrap modal on activation
- How to change Bootstrap default input focus glow style
- Autoplay YouTube video inside Bootstrap modal
- How to align responsive image in center in Bootstrap
- How to align text in Bootstrap
- How to center a column in Bootstrap
- How to close a Bootstrap modal window using jQuery
- How to get centered content in Bootstrap
- How to get right aligned buttons in Bootstrap
- How to left and right align text within a DIV in Bootstrap
- how to center buttons in Bootstrap
- How to open a Bootstrap modal window using jQuery
- How to vertical align a DIV in Bootstrap
PHP / MySQL
This section contains a collection of frequently asked questions related to PHP and MySQL database
- How to write comments in PHP
- How to remove white space from a string in PHP
- How to find number of characters in a string in PHP
- How to find number of words in a string in PHP
- How to remove special characters from a string in PHP
- How to replace a word inside a string in PHP
- How to prepend a string in PHP
- How append a string in PHP
- How to extract substring from a string in PHP
- How to compare two strings in PHP
- How to get current page URL in PHP
- How to create a string by joining the values of an array in PHP
- How to split a string into an array in PHP
- How to combine two strings in PHP
- How to convert a string to lowercase in PHP
- How to convert a string to uppercase in PHP
- How to convert the first letter of a string to uppercase in PHP
- How to convert special HTML entities back to characters in PHP
- How to remove white space from the beginning of a string in PHP
- How to remove white space from the end of a string in PHP
- How to create a new line in PHP
- How to find string length in PHP
- How to check whether a variable is set or not in PHP
- How to check whether a variable is empty in PHP
- How to check whether a variable is null in PHP
- How to reverse a string in PHP
- How to replace the part of a string with another string in PHP
- How to count how many times a substring occurs in a string in PHP
- How to count all elements in an array in PHP
- How to print or echo all the values of an array in PHP
- How to display array structure and values in PHP
- How to reverse the order of an array in PHP
- How to check if a value exists in an array in PHP
- How to check if a key exists in an array in PHP
- How to remove the last element from an array in PHP
- How to remove the first element from an array in PHP
- How to add elements to the beginning of an array in PHP
- How to add elements to the end of an array in PHP
- How to merge two or more arrays into one array in PHP
- How to sort an array values alphabetically in PHP
- How to remove duplicate values from an array in PHP
- How to randomize the order of an array in PHP
- How to compare two array values in PHP
- How to calculate the sum of values in an array in PHP
- How to remove empty values from an array in PHP
- How to populate dropdown list with array values in PHP
- How to get all the keys of an associative array in PHP
- How to get all the values from an associative array in PHP
- How to sort an associative array by key in PHP
- How to sort an associative array by value in PHP
- How to get single value from an array in PHP
- How to loop through multidimensional array in PHP
- How to delete an element from an array in PHP
- How to check if a string contains a specific word in PHP
- How to get the current date and time in PHP
- How to make a redirect in PHP
- How to strip all spaces out of a string in PHP
- How to get the current year using PHP
- How to convert a date from yyyy-mm-dd to dd-mm-yyyy format in PHP
- How to convert a string to a number in PHP
- How to get the first element of an array in PHP
- How to convert a date to timestamp in PHP
Advertisements