QUESTIONS

Tagged: jquery

answers  2
views  971
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  601
votes  0

[Question] Enable and Disable the input text fields using JavaScript or jQuery  

Consider this piece of HTML code: <body> Name: <input type="text" id="name"><br> Email: <input type="text" id="email"><br> <input id="btnEnableAll" type="button" value="Enable All"/> <input id ...
Oct 03, 2016
Vanja Paterno
{ 50 - 1 - 0 }
answers  2
views  696
votes  0

[Question] Get text and value of selected drop-down list option using jQuery  

I have the following select element: <select id="countries"> <option value="AR">Argentina</option> <option value="AU">Australia</option> <option value="AT">Austria</option> <option value="AF"> ...
Oct 01, 2016
Ezio Mayur
{ 54 - 1 - 0 }
answers  2
views  578
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  2
views  604
votes  0

[Question] Change an element's id using jQuery  

Consider this HTML snippet... <div style="width:300px;" class="siblings"> <ul> <li>Rupee</li> <li>Pound</li> <li id="usaCurrency">Dollar</li> <li>Franc</li> </ul> </div> Is it po ...
Sep 28, 2016
Klement Koranteng
{ 50 - 1 - 0 }
answers  1
views  619
votes  0

[Question] Find element by index in jQuery  

I have the following HTML content <div> <ul> <li>USA</li> <li>UK</li> <li>France</li> <li>Russia</li> <li>Belgium</li> <li>India</li> </ul> </div> <input id="btnHighlight" ...
Sep 27, 2016
Marijo Jordan
{ 50 - 1 - 0 }
answers  1
views  493
votes  0

[Question] Capture Hover event using jQuery  

The default background color of a "p" element is aqua. How can I change it to coral color when the mouse pointer hovers over the element?
Sep 27, 2016
Giacobbe Baldassare
{ 50 - 1 - 0 }
answers  1
views  585
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  1
views  310
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
{ 2,515 - 494 - 0 }
answers  2
views  909
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  1
views  819
votes  1

[Question] How to get the name of an element with jQuery  

I am just getting to know jQuery. How do I get the 'name' of an element in an Html page?
Apr 22, 2016
Rishi Cherian
{ 55 - 1 - 0 }
answers  3
views  993
votes  1

[Question] Difference between jQuery and Angular  

I am a big fan of jQuery and it was everywhere a few years back. I am finding it very difficult to digest the trends indicating the decline of the jQuery and the rise of Angular in the JavaScript comm ...
Apr 15, 2016
Cameron Carpenter
{ 55 - 1 - 0 }
answers  1  
views  443
votes  0

[Question] How to detect a click outside an HTML element?  

I have a button that when clicked shows a little non-modal dialog. Question: How do I detect a click outside the button, so that the dialog can be dismissed?
Apr 12, 2016
Alvin Gallow
{ 50 - 1 - 0 }
answers  0
views  249
votes  0

[Question] Differences between e.preventDefault(), e.stopPropagation(), and return false;  

In my code I want to prevent other event handlers from executing. I am always struggling to understand which of the following methods is the most appropriate, so in my own work I use all three (which ...
Apr 02, 2016
Panos Andreas
{ 75 - 2 - 0 }
14  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.