Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
AmitDiwan has Published 10740 Articles
AmitDiwan
142 Views
To display variables on console, use document.getElementById(“”).ExampleFollowing is the code − Live Demo Document const data = document.getElementById("printTheData"); console.log(data); To run the above program, save the file name anyName.html (index.html). Right ... Read More
AmitDiwan
553 Views
Let’s say the following are our radio buttons, which we have set checked −Gender Male FemaleTo uncheck, set the checked property to false using prop() in jQuery −$('input[id="yourChoice"]:checked').prop("checked", false);ExampleFollowing is the code − Live Demo Document Gender ... Read More
AmitDiwan
272 Views
To make checkboxes impossible to check, set disabled property to true −JavaScriptFollowing is the code −ExampleFollowing is the code − Live Demo Document List Of Subject names MySQL JavaScript MongoDB To run ... Read More
AmitDiwan
194 Views
To count how many times a user presses the button, you need to set counter on button click.ExampleFollowing is the code − Live Demo Document Press Me The current Value is= 0 var increment = 0; ... Read More
AmitDiwan
2K+ Views
For this, use jQuery(selector).toolTip().ExampleFollowing is the code: − Live Demo Document Write Your Favourite Subject Name: jQuery(".demoTooltip").toolTip() To run the above program, save the file name anyName.html (index.html). Right click on the ... Read More
AmitDiwan
482 Views
To toggle content, use slideToggle() in JavaScript.ExampleFollowing is the code: − Live Demo Document .firstDiv { display: none; } .txtBox { display: block; } Press Me ... Read More
AmitDiwan
184 Views
Let’s say the following are our numbers with object values −var numberObject = { 2:90 , 6: 98 }Use Array.from() in JavaScript −var fillThePositionValue = Array.from({length: 15}, (value, index) => numberObject[index+ 1] || "novalue")ExampleFollowing is the code to loop numbers with object values −var numberObject = { 2:90 , 6: ... Read More
AmitDiwan
194 Views
To implicitly mimic click(), you can call a function internally.ExampleFollowing is the code to implicitly mimic click − Live Demo Document My Name is John Doe demo1Data = document.getElementById('demo1').innerHTML demo1Data ... Read More
AmitDiwan
2K+ Views
Set the disabled property to true in jQuery −ExampleFollowing is the code − Live Demo Document $("#change").click(function (buttonEvent) { buttonEvent.preventDefault(); $('#showTxtBoxHide').prop("disabled", false); ... Read More
AmitDiwan
3K+ Views
To store large numbers in JavaScript, use BigInt() rather than + operator. If you will use the + operator, then expect loss of precision.Let’s say the following is our large number and we are storing using BigInt() −console.log("Loss of precision with + operator..")ExampleFollowing is the code −var stringValue1="100"; console.log("The integer ... Read More