
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 10744 Articles

AmitDiwan
128 Views
To fix this, use the concept of this keyword. User another variable to hold the value of object, to use that inside the inner function.ExampleFollowing is the code −function Employee() { this.technologyName = "JavaScript"; var currentTechnologyName = this; function workingTechnology() { console.log("I am working ... Read More

AmitDiwan
128 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
527 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
243 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
169 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
461 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
162 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
167 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