QUESTIONS

Tagged: javascript

answers  2
views  487
votes  0

[Question] Let text field only accept numerical values using jQuery  

I have a following input text field: <p>Age: <input type="text" id="age"></p> I need that the user should be able to type only numeric characters 0-9 in this field. How is it possible using jQuery?
Oct 12, 2016
Klement Koranteng
{ 50 - 1 - 0 }
answers  2
views  199
votes  0

[Question] Scroll to Top using JavaScript/jQuery  

I have infinite scrolling implemented in a page. I need to provide a button or a simple link which when clicked lets the user scroll to the top of the page. How can I implement it using jQuery or plai ...
Sep 30, 2016
Marijo Jordan
{ 50 - 1 - 0 }
answers  1
views  221
votes  0

[Question] Getting and Setting the value from an input text field with jQuery  

I have an input text field <input type="text" id="empName"/> I need to write a value to this field and retrieve the existing value using jQuery? How can I do that?
Sep 23, 2016
Vanja Paterno
{ 50 - 1 - 0 }
answers  0
views  248
votes  0

[Article] JavaScript runtime: Call Stack and Event Queue - Part 5  

This is in continuation to JavaScript runtime: Call Stack and Event Queue - Part 4 <!DOCTYPE html> <html> <head> <title>Stack-Queue</title> <link href="assets/css/bootstrap.css" rel="stylesh ...
Sep 12, 2016
Raman Dhingra
{ 80 - 2 - 0 }
answers  0
views  310
votes  0

[Article] JavaScript runtime: Call Stack and Event Queue - Part 4  

This is in continuation to JavaScript runtime: Call Stack and Event Queue - Part 3 The setTimeout() is the JavaScript's asynchronous function. It accepts two arguments: a callback function and a time ...
Sep 12, 2016
Raman Dhingra
{ 80 - 2 - 0 }
answers  0
views  268
votes  0

[Article] JavaScript runtime: Call Stack and Event Queue - Part 3  

Registering callbacks in the Event Table This is in continuation to JavaScript runtime: Call Stack and Event Queue - Part 2 When the following code is executed, btn.addEventListener('click', functio ...
Sep 12, 2016
Raman Dhingra
{ 80 - 2 - 0 }
answers  0
views  202
votes  0

[Article] JavaScript runtime: Call Stack and Event Queue - Part 2  

Call Stack: Administering function calls This is in continuation to JavaScript runtime: Call Stack and Event Queue - Part 1 var first = function() { console.log("Hello One"); }; var second = funct ...
Sep 12, 2016
Raman Dhingra
{ 80 - 2 - 0 }
answers  0
views  197
votes  0

[Article] JavaScript runtime: Call Stack and Event Queue - Part 1  

Browser and JavaScript interaction Things like waiting for an event to occur or rendering an HTML page execute in the browser's native context. Initially, the browser waits for an event to occur, for ...
Sep 12, 2016
Raman Dhingra
{ 80 - 2 - 0 }
answers  0
views  120
votes  0

[Article] Prototypal Inheritance in JavaScript  

JavaScript is a prototype based language. In JavaScript, you cannot define classes explicitly. It makes use of prototypes instead of classes to achieve inheritance. It derives its prototype-based inh ...
Sep 07, 2016
Ramadan Ahmed
{ 50 - 1 - 0 }
answers  1
views  75
votes  0

[Question] Display/Hide the content based on the checkbox state in jQuery  

I have a static content which I want to display if the user checks a checkbox and hide the content if the user unchecks the box.
Sep 07, 2016
Umar Sheikh
{ 50 - 1 - 0 }
answers  4
views  240
votes  1

[Question] Substring in JavaScript  

In JavaScript, how can I check if the string str1 contains another substring str2?
Sep 06, 2016
Ezio Mayur
{ 54 - 1 - 0 }
answers  3
views  176
votes  0

[Question] Redirecting to another page with JavaScript  

How to redirect a user from one page to another using JavaScript?
Sep 06, 2016
Nicholas Lake
{ 50 - 1 - 0 }
answers  2
views  610
votes  0

[Question] How do I refresh a page with JavaScript or jQuery?  

How can I refresh / reload a page with JavaScript?
Sep 03, 2016
Giacobbe Baldassare
{ 50 - 1 - 0 }
answers  0
views  79
votes  0

[Question] Updating a CSS class property in real-time  

I was wondering if there is a way to update a CSS class property in real-time. The idea The idea here would be to update the CSS class property after an HTML page has been fully uploaded by the web cl ...
Apr 15, 2016
Jose Alvarez
{ 50 - 1 - 0 }
answers  1
views  124
votes  0

[Question] Client-side MVC pattern  

The MVC pattern is quite often used on the server-side when writing web applications, for instance ASP.NET, PHP, Ruby on Rails. Being a JavaScript developer, I am wondering whether we should segment o ...
Apr 15, 2016
Antoon Gerritsen
{ 50 - 1 - 0 }
20  posts
You may also like
When to use 'ref' and 'out' keywords - specifically with strings?
Visual Studio 2015 F10 Debugger key not working
Horizontally centering a <div> inside another <div>
How to Encrypt and Decrypt a string in C#
Server Side Rendering in JavaScript?
Curlybrackets Software
The source code for Curlybrackets (C#/.NET/SQL Server) is available for purchase here. Start your own Q+A site now!

Easily create custom post types: messages, ideas, questions, tickets, whatever.

The Software Pack is a great place to start your corporate Q+A customer support site.