Generally, on a webpage, we have so many headings and images. It should be at the center position. So the visitor can directly notice them and find the exact topic which he/she wants to read very quickly. We can also use this method to highlight some of the topics of the page. We can use […]
Latest in How To
How to Convert String to Int in Java
Sometimes we require to perform a mathematical operation on data received as a string. We have to convert the string value into an integer at that time, and then we can perform operations on it. Note: The data received from the text field would always be a string form. Java provides the methods for converting […]
Remove Element JavaScript
With JavaScript, We can easily remove different HTML elements. Also Read: Create Element JavaScript Example 1 Suppose we want to remove <li> element inside <ul> elements using javascript. Here, we remove <li> elements using javascript as follows: Explanation: We select <div> tag using id container. We select <ul> tag using getElementsByTagName() function. We select <li> […]
Create Element JavaScript
With Javascript, We can easily create different HTML elements and also append them to other elements. Read Also: Remove Element JavaScript Suppose we want to insert a new list element inside <ul> elements using javascript. Here, we create <li> elements using javascript as follows: Explanation: First we create a new <li> element using document.createElement() function. […]
JQuery Remove Element
With jquery, We can easily remove different HTML elements. Before reading this post please refer our JQuery Create Element post if you don’t know how to create an element using JQuery. Above structure is the basic HTML structure that contains the head and body. To use jquery in HTML code, we require jquery google CDN […]
