×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Arnab Chakraborty
has Published
76
Answers
Write a python program to count total bits in a number?
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Sep-2018 17:40:24
Exampledef bitsCount(n): count = 0 while (n>0): count += 1 n >>= 1 return count i = 4 print(bitsCount(i))Output3
How can I remove all child elements of a DOM node in JavaScript?
Javascript
Web Development
Front End Technology
Arnab Chakraborty
Published on 23-Sep-2018 11:45:06
To remove the child elements of <div>we can use, var list = document.getElementById("mList"); while (list.hasChildNodes()) { list.removeChild(list.firstChild); } }It will remove the all child ofwhich id is 'mList'.ExampleIn your code it can be written as -<html> <body> <div id="mList" style="width:400px;background-color:gray"> ...
Read More
How to validate a form using jQuery?
Arnab Chakraborty
Published on 22-Sep-2018 13:49:12
At first you have to make a html form like.<html> <body> <h2>Validation of a form</h2> <form id="form" method="post" action=""> First name:<br> <input type="text" name="firstname" value="john"> <br> Last name:<br> <input type="text" name="lastname" value="Doe"> <br> Email:<br> <input type="email" name="u_email" value="johndoe@gmail.com"> <br> <br><br> <input type="submit" value="Submit"> </form> </body> </html>Now use jQuery validation plugin ...
Read More
What e.preventDefault() method really does in jQuery?
jQuery
Web Development
Front End Technology
Arnab Chakraborty
Published on 17-Sep-2018 18:38:53
The preventDefault() method stops the default action of a selected element from happening by a user. This method does not accept any parameter and works in two ways:It prevents a link from following the URL so that the browser can't go another page.It prevents a submit button from submitting a ...
Read More
How can I know which radio button is selected via jQuery?
jQuery
Web Development
Front End Technology
Arnab Chakraborty
Published on 17-Sep-2018 14:19:44
The jQuery: checked selector can be used in conjugation with the val() to find the value of certain radio button as, $('input[name=radioName]:checked').val()In your query this can be implemented as −Example Live Demo<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("input[type='button']").click(function() { ...
Read More
How to remove a property from a JavaScript object
Javascript
Web Development
Front End Technology
Arnab Chakraborty
Published on 10-Sep-2018 13:33:44
The delete keyword is used to remove the property and also the value of the property. After deletion, the property cannot be used before it is added back again.In your example it can be used as -Example<html> <body> <p id="demo"></p> <script> var cricketer = { name:"John", rank:3, ...
Read More
How do we do computer output formatting using the <samp> tag in HTML?
HTML
Web Development
Front End Technology
Arnab Chakraborty
Published on 05-Sep-2018 00:23:35
<samp> tag is a phrase tag.It is used to identify the sample output from a computer program. Most browsers will display the <samp> element in monotype font.This tag can be used in html document as −Example<html> <head> <title>Title of the document</title> </head> <body> <samp> <h2> HTML document</h2> <p>This ...
Read More
How to use the <kbd> tag for keyboard input formatting in HTML?
HTML
Web Development
Front End Technology
Arnab Chakraborty
Published on 04-Sep-2018 01:17:17
<kbd> tag is a phrase tag.It is used to identify text that represents user keyboard input. Most browsers display the <kbd> element in a monospace font.This tag can be used in html document as:<html> <body> <p>Two special keys in keyboard are:<kbd>ctrl</kbd>, <kbd>alt</kbd>.</p> </body> </html>
Read More
How to make a div center align in HTML?
HTML
Web Development
Front End Technology
Arnab Chakraborty
Published on 04-Sep-2018 00:35:53
To center div element center ,you can use "div style="text-align:center" " and to center the div ,use "div style="margin: 0 auto" "In your code, the above css will be written as −<div style="text-align:center;width: 300px;margin: 0 auto;border-style: dotted;"> <p>hi</p> </div>
Read More
How do I use jQuery effects?
jQuery
Web Development
Front End Technology
Arnab Chakraborty
Published on 17-Aug-2018 01:51:42
For hiding and showing the div, you can use hide and show method.For hiding$('#id1').hide();For showing$('#id1').show();Example<html > <head> <title>showhide</title> <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $('#btn1').click(function () { $('#id1').hide(); ...
Read More
1
2
3
4
5
6
7
8
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout