A JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.

learn more… | top users | synonyms

2
votes
0answers
18 views

Responsive layout for showing/hiding 4 panels

I have 4 panels that will contains tables for data. There will be instances where a panel will contain no data, so I have combated wasted space with the code below. I'm relatively new to both jquery ...
1
vote
1answer
25 views

Display related images based on text name

Instead of "Black and Green" text, We are displaying "Black & Green" images with help of below code. What we want is this concept should work for all colors, for that one solution is i need to ...
3
votes
1answer
22 views

Navigating HTML5 canvas checkerboard with nested loops / multi-dimensional arrays

I'm creating a web app to create pixelmaps for large LED displays. The maps are basically large checkerboard patterns of various sizes with different constraints. I'm running into snags trying to ...
2
votes
1answer
32 views

Filtering script for products by category

I built a simple product filtering feature that works at least in the browsers and platforms that I have tried using it on, but I am unsure about a couple of aspects of it. I built this on a ...
0
votes
1answer
41 views

Displaying weather data from an Arduino

Please review my code, for performance and readability. 3 issues I am facing are Uncaught Exception : out of memory (in firefox) randomly Failed to load resource: The request timed out. Even if the ...
-2
votes
0answers
17 views

Adding wrapping tags before and after a specified tag via query [migrated]

I've recently started a course on jQuery and wondered what's going wrong with my code. I'm wanting to add an opening li before each "wcprow" div and closing the li after the closing div... so it looks ...
0
votes
0answers
61 views

Ajax Validation Handler

I'm trying to transition my app from a collection of server scripts to something that uses SOLID concepts. I'm stuck trying to figure out a better way to do ajax validation. I currently have a file ...
1
vote
0answers
40 views

Generate Personal Financial Report — to OOP or not to OOP php

I've developed a little personal financial web app in PHP/JQuery/MYSQL. The program currently does everything I need it to do, but I know that I'm an amateur coder. Looking for some help on cleaning ...
5
votes
1answer
53 views

Dynamic attribute key selector

I'm basically trying to build a function that searches all nodes on the DOM to check for data attributes, then swap them out with whatever is stored with the "data-intl-" attribute. For example, if ...
1
vote
2answers
42 views

Code that rotates images in a set of divs

I am rotating images inside some divs. An image is associated with a link.Eg: image0 is associated with link0, image1 with link1 and so on. image0 and link0 should display in pos-1 image1/link1 ...
0
votes
2answers
68 views

Iterating through specific elements of an array with filter()

I have the following code which iterates through some divs of an array to show() them. I was wondering if there is any way to rewrite the ...
2
votes
1answer
37 views

Function with jquery.alphanumeric

I want to implement jquery.alphanumeric in HTML pattern, so I used a jQuery plugin from here. Can this be shortened or improved? ...
-1
votes
4answers
156 views

How to make this code more compact? [closed]

Is there any way I can this code shorter? It can in any way, in my javascript code or in my HTML code. I just want it to be as short and simple as possible. Javascript ...
5
votes
2answers
123 views

Using regex to replace strange characters

After importing some products from a csv strange characters have shown up on the page and it would be too much work to manually go to each product and remove them so I made this script to deploy on ...
3
votes
1answer
56 views

Grouping events in jQuery

Hi I need some help grouping events in jQuery. I feel the code is too long and I need to add more id's to fire events. This is a jQuery time update events for a video player with multiple id's. My ...
1
vote
1answer
44 views

Simple parallax using jQuery and CSS

I'm working on a website and am trying to implement a parallax effect on an image and title (possibly other elements too). I'm trigering the effect with .scroll() ...
1
vote
1answer
63 views

Webpage with four color images

I have a very simple webpage that contains 4 color images. When I hover over any of the images the original (xxxx1.jpg) is replaced by a black and white version (xxxxx2.jpg) of the same image, and ...
1
vote
1answer
45 views

Check if user selects correct Spanish word article

All Spanish nouns have a gender (masculine [el] or feminine [la]; e.g. la casa, el perro). I'm using some javascript and jquery to display a random word from a list of nouns (2D array), as well as ...
1
vote
0answers
32 views

Twilio Real-time SMS with JQuery and PHP

I'm currently working on a real-time SMS System but I'm fairly positive that my current implementation is a terrible practice and I'm looking for guidance to be more efficient with this. The Attempt ...
-2
votes
1answer
48 views

Stateful Javascript plugin [closed]

I am new to Jquery plugins, I was searching a lot about widgets and plugins, however I am still not sure if this code is okay. Should I use widgets for stateful plugins? Or is this plugin correct? ...
0
votes
0answers
25 views

Filtering data from an input field

I have created a function to filter data from an input field: ...
0
votes
1answer
44 views

Changing background color of HTML elements based on user input

This is jQuery code which works like this: depending on a user choice it changes the color and background of some elements in the DOM. The behavior is ok, is doing exactly what I want. And as you ...
0
votes
0answers
19 views

jQuery custom slider

I'm new to jQuery and JS and have recently tried turning a working slider into a plugin for the first time for a small project. I would love some feedback, code improvement, optimization and any do's/...
1
vote
0answers
15 views

jQuery focus/blur pass variable cleanup challenge

Little bit of a challenge question. What I have works though I'm no JS wizard, wondering if anyone has a better/preferred way of doing what I'm doing? Basically, I want to dynamically set a variable ...
4
votes
1answer
151 views

HTML scraping and using jQuery

I wrote a Chrome extension that lists upcoming concerts for the next seven days, this month, and next month. I had trouble with the nextSeven() method, especially ...
0
votes
1answer
32 views

Connection request to LinkedIn profiles on search page

I implemented a script for a LinkedIn user to connect with all profiles on a LinkedIn search page and move to the next one automatically. As I am a new javaScript programmer, could someone look at my ...
2
votes
1answer
38 views

Clipboard support in jQuery using revealing module pattern

I have recently been getting into the habit of leveraging the revealing module pattern for all my code. I used this guide for inspiration, but my code doesn't feel as elegant. ...
2
votes
0answers
94 views

jQuery plugin to highlight HTML on click/hover events and easy grouping

I have this plugin that I have finally finished the big pieces of, there's one or two minor details that are not yet implemented do to lack of a decision yet but everything else is there. I wrote it ...
3
votes
2answers
99 views

Adding multiple rows in an HTML table using jQuery

I have this function that allows the user to supply a number and that many rows are appended to the existing table: ...
0
votes
0answers
30 views

jQuery slideshow with connected links and the ability to pause/resume when hovered - follow-up

The stated goal from Take 1: I want a slideshow with three primary pieces of functionality: Has text links that act as bullet-points and can jump directly to a slide when clicked. Pauses ...
4
votes
1answer
52 views

jQuery responsive tabs to accordion

I wrote a script that adapts HTML tabs for different screen resolutions. On a small screen it's an Accordion and on wider ones they're Tabs. The script is for a production site, and I'm not so good in ...
3
votes
1answer
59 views

jQuery slideshow with connected links and the ability to pause/resume when hovered

Update: Here is Take 2. I want a slideshow with three primary pieces of functionality: Has text links that act as bullet-points and can jump directly to a slide when clicked. Pauses when a slide or ...
3
votes
0answers
28 views

YouTube component of a multi-component web-app

Following is basic JS code to create a YouTube search bar, search of query and load the results in a dropdown menu. I am new to JS programming and I am seeking advice for how to write better code. ...
4
votes
0answers
85 views

Accessing a REST WebService and updating local HTML objects with Modular JS

I have this code I am doing to make my code modular js: ...
4
votes
2answers
55 views

Getting JSON with jQuery, creating a function that displays the data from two separate feeds

I have written my first JavaScript program from scratch and am looking for advice to check whether it is efficient and effective or how it could be improved. ...
3
votes
1answer
62 views

jQuery autocomplete for all place names in the UK

I made an autocomplete input box of every town, city and village in the UK. Yes, every single one. The load times are painful so is there a way to reduce that? Here is a sample: ...
0
votes
0answers
29 views

Validation on programmatically created links list

This code works for what I need. It's not that long, so no big deal, but I'd like to get better at this. How can I improve this? ...
0
votes
0answers
41 views

Library repository for adding, deleting and editing a list of books made with EJB and Rest

This was my first time designing the application from scratch, I feel I could miss something important, but I'm not able to find it by myself with no experience. Here is the pom.xml where I put all ...
3
votes
1answer
30 views

Change functions based on jQuery plugin {options}

I'm developing my first legitimate jQuery plugin, and I'm trying to keep it very modular. To do this, I'm writing many individual functions, which is fine, but I need a clean way to determine what ...
0
votes
2answers
53 views

Toggle nav that switches a banner section

I built this toggle nav that switches a banner section between the slider and a map. All works well but I would like to know how I could improve my JavaScript as I am quite new to it. ...
3
votes
1answer
67 views

Disable button when required inputs are not filled in

Currently I'm having a big form, with steps and a lot of complex fields. To make sure the user fills the required inputs and don't make them crazy pushing down the button submit when one required ...
5
votes
1answer
54 views

jQuery Double Timepicker

I have one year of JavaScript/jQuery experience but I feel a bit messy in my code. The point is that I make some code that works but I feel that it can be improved like hell. I look for that, but even ...
1
vote
0answers
56 views

jQuery plugin for dropdown with multiple select

This is my first time creating a jQuery plugin. As there are many tutorials for jQuery plugins, I'm not sure if my code correct. This is my first draft for my plugin, it is working but I haven't ...
5
votes
2answers
106 views

Form that reveals more fields as each step has been completed

I'm new to JavaScript and jQuery and need input about how to optimize my script: ...
3
votes
0answers
21 views

jQuery Mobile Menu plugin

I would like some opinions on this Mobile Menu plugin I wrote for work. We develop custom WordPress themes, nothing too advanced or anything. I would like if anyone could just take a look and provide ...
1
vote
1answer
82 views

Add/remove class event handler

I wrote this if statement event listener to add and remove a class to a couple links based on changed.owl.carousel. However, I ...
-1
votes
1answer
50 views

jQuery button click handler to fill in form fields [closed]

I have this function and not quite sure how to optimize it? ...
3
votes
1answer
83 views

Populating a form with filtered hierarchical place names

My server performs a query to get all country data with Eloquent relationships: ...
0
votes
0answers
54 views

Zend Framework 3 Ajax Form Validation - contact form

I would like to present to you my code vision of Ajax form validation in Zend Framework 3. I am a beginner in Zend Framework and jQuery too, so I don't know that my solution is good and acceptable. ...
1
vote
0answers
48 views

Gradual color change on scroll

I'm a beginner who wants to learn properly how to write code. The following code takes initial RGB values and gradually changes them (shade by shade) to targeted rgb values, scroll by scroll. The code ...