We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [jquery]

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

193 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
102 views

Load more and filtering - WordPress AJAX

In my WordPress theme I have built a function that uses Isotope Layout by Metafizzy to accomplish filtering and sorting. I have used a mix of AJAX and JQuery to accomplish this, however I feel the ...
1
vote
0answers
12 views

Collapsible left-side tree

I was wondering if there is a better way to write the following code? The code is working, I am looking for better technique to achieve the functionality, if any exists. Never mind the classes that ...
1
vote
0answers
22 views

jQuery plugin for allowing only digits to be entered in html form input

I wrote this small jQuery plugin to set some fields so that they allow only 0-9 digits to be entered. I intended to do that by preventing user from typing, pasting or dropping non-digit content. It ...
1
vote
0answers
55 views

Sorting options within a select element

I am trying to sort the options within a SELECT element. I wonder if I am doing it stupidly or not, so perhaps someone can look ...
1
vote
0answers
43 views

A Ruby on Rails controller and JS code to add labels to products, like Gmail's labeling tool

My friend asked me to write a tool that lets users bulk add/edit labels (taxons) to store (spree commerce) products. I came up with this, curious to know if you guys find the code readable/...
1
vote
0answers
25 views

Selecting rows on condition in a table

I have a table with courses. The user that is currently logged in can mark these courses as attended and unattended. There can be multiple rows selected. The logic for this row selecting looks ...
1
vote
0answers
75 views

Shopping cart to pdf generator

So I'm working on my website which is done though 3dcart, in their infinite wisdom for some reason I cannot work on anything to do with the backend (no database interactions or anything), so this is ...
1
vote
0answers
332 views

Slider that increased center slide width. (Slider plugin suggestions)

I wanted to create slider when it slide center slide width must have incresed and the two slide next to it stay on normal slide. I have tried one using slick slider. Here is the code pen link that I ...
1
vote
0answers
1k views

jQuery animate() and css() not performing well in firefox and internet explorer

I am making a webapp that needs a division to expand on click. (The division is loaded with content, so it was likely to not animate very well, but I increased the animation time to 1s to make it look ...
1
vote
0answers
47 views

Calculator comparing your inflation rate to the Consumer Price Index

This code works fine and outputs the expected result. It is a small part of a larger program I'm working on to calculate personal inflation. I feel there is a better or more elegant way do this. I am ...
1
vote
0answers
46 views

jQuery plugin to toggle a fullscreen menu open/closed

I wrote my very first jQuery plugin: open/close a fullscreen menu, using a toggle. I know a very little about object in JavaScript; I'm a PHP OOprogrammer. How to transform this plugin using OO ...
1
vote
0answers
62 views

Plotting neighborhood Yelp information on Google Maps

I have a project that I made a long time ago, and I was wondering how I should refactor the front end. This web app gets yelp data and displays it on a google map. I remember someone saying that html ...
1
vote
0answers
83 views

Populating a container with dynamic pairs of connected sortable lists

I am working on an application which is used to assign work to Operators based on the Category of the work. Each Operator has several Categories of work they are qualified to work on. They have a ...
1
vote
0answers
65 views

Reading Files in a File Manager Plugin for WYSIWYG Editors

I recently created a file manager plugin for the TinyMCE, CKEditor and Redactor editors to ...
1
vote
0answers
58 views

Passenger calculation UI logic

I need to shorten code, remove duplicate elements, and generally make a more valid code. My code works, but I think it is 'hardcoded'. How would an experienced programmer reduce this code? At the ...
1
vote
0answers
20 views

Floating Input Label with GreenSock

I created floating input labels, however, I don't think the way I wrote the code is the best way and seems redundant. For example I'm targeting the same elements more than once in different functions ...
1
vote
0answers
46 views

Creating Fancy Box w/ Input Carousel

Customizing Custom Options in Magento. See it in action - Click specify fixture just below the price on product page Ive styled the radio buttons using purely css. Is this the proper or most ...
1
vote
0answers
45 views

Javascript: Showing a modal with image when an image is clicked

I am currently working on a very small Image Gallery website. When I click on a given image, a modal window which contains it should be shown. Buttons previous, next are used to show previous/next ...
1
vote
0answers
146 views

React Bitcoin Exchange Single Page App

I've got a simple single page web app that's build with React. It fetches data from two different APIs, when they have been successfully retrieved, and the promise ...
1
vote
0answers
2k views

AJAX Calls within jQuery Loops

I have the following code, which is working (?), but I guess I can do it simpler and more elegantly. I need to invoke a method when everything is completed (channelsVideos array is filled). The ...
1
vote
0answers
46 views

Add Colour Tags on Click - Version 2

I recently asked a question here, where I was trying to implement some extra functionality into the tag-it plugin, where the user should be able to add tags to the input by clicking on them in a "...
1
vote
0answers
448 views

jQuery/HTML5 Finance Calculator

I have created a simple jQuery based finance calculator. Just to make it easy to read I will list below all the functionality and validation it has. Functionalities: Ability to enter the amount ...
1
vote
0answers
110 views

Draw directional flow on html5 canvas grid/checkboard with respect to user defined size and limits

Ultimately I want to be able to draw a checkerboard (wall) of user-defined size. This wall is made up of tiles of a user-defined size. This main wall can then be split up into multiple sections (...
1
vote
0answers
363 views

Eliminate render block on my bxslider

I am using the bxslider jQuery plugin as a welcome banner with a overlay (see image below for illustration.) This is however causing render block and cannot figure out how I can improve my code to ...
1
vote
0answers
99 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
86 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 ...
1
vote
0answers
121 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
69 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 ...
1
vote
0answers
216 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 ...
1
vote
0answers
2k 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
614 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 ...
1
vote
0answers
448 views

Pointer hover animation for a five-star-rating picker

I want to shorten my code. You can see the following code i used many function for addClass, removeClass. But it is not usefully. Can do my work in one hover function ? If yes can anyone help me ? ...
1
vote
0answers
442 views

JavaScript Wikipedia search using jQuery autocomplete

The goal is to query the Wikipedia API with a search, and present the user the autocomplete options based on an API call that shows possible Wikipedia pages when entering the search using the jQuery ...
1
vote
0answers
438 views

Populating an HTML table with JSON results

Could anyone suggest a better approach than the one I'm using now? I tried to keep it as minimal as possible, but this is the best I came up with. I did extensive research just to get to this point. ...
1
vote
0answers
30 views

Hovering elements in jQuery

I made this Fiddle with this code, though I'm not happy with it. Is there a better approach to achieve same result with cleaner code? jsFiddle ...
1
vote
0answers
748 views

Drag to adjust size of two divs

I have a browserify module I've made for resizing two divs I have beside each other. The idea is that I have two panes with a bar between them which I can grab and drag to resize the panes. As one ...
1
vote
0answers
272 views

Custom jQuery Lightbox

I wanted to make a custom lightbox, so I can easily change or add features. So far I got this. It works, with a few bugs, but I know the code is not clean at all. Also, I think a lot can be optimized ...
1
vote
0answers
66 views

Template for web pages using social plugins

I created a simple template for web pages that uses social plugins. The template consists of the html/php with jquery, and the necessary javascript to enable and use social plugins. The javascript ...
1
vote
0answers
263 views

Sending JSON from a checkbox form

I coded this, which is working but I think there is a better way to do this.. I have a form where the user can check from checkboxes. For each checkbox I have multiple info that I want to send to my ...
1
vote
0answers
61 views

CRUD operation in controller for different objects

I am working on AngularJS project. Our project contains lot of controllers and each controller having more functions. I want controllers should be clean and simple. What are the ways to modify the ...
1
vote
0answers
295 views

Statistic Chart With Filter

I have created an app, which show chart, table detail of chart, with filter date. I created app with Backbone and Marionette, chart with Chartist.js, and the filter date I'm using Pikaday.js and ...
1
vote
0answers
186 views

Tabbed popup jQuery plugin

A plugin I'm writing that will have essentially be a tabbed popup. However, I feel like the method I use to remove tabs is completely unwieldy. ...
1
vote
0answers
44 views

AJAX Form Creator

I wrote an AJAX Form Creator (in the form of an js object constructor) that takes a form and a callback. I am a decent, slightly okay, completely novice developer, and could use feedback on coding ...
1
vote
0answers
335 views

JavaScript / jQuery Memory Guessing Game

I want some tips on how to make my code better, more efficient, better coding practices, etc. Codepen ...
1
vote
0answers
57 views

Selecting up to three thumbnail images using jQuery

I have written something in jQuery but I'm not sure whether it is an elegant solution. Every click needs to check the DOM for classes/and add and remove classes. Any feedback or suggestions would be ...
1
vote
0answers
156 views

Counting and listing words in a table

I have recently carried out a test for university where I was given the following instructions: Write a simple JavaScript application that reads paragraphs of text input by the user and creates a ...
1
vote
0answers
366 views

jQuery placeholder plugin checking

I have been experimenting with jQuery and HTML placeholder plugin for practice work. I've used this jQuery plugin. I've checked it in IE8 in, it seems it works. Could you please check and write is ...
1
vote
0answers
1k views

jQuery VLOOKUP() script

The script below demonstrates VLOOKUP by showing which languages appear from column 1 in column 2. Is there a way that I can refine my code to pass in an exact ...
1
vote
0answers
41 views

Loading multiple remote resources

I've created a class that allows me to load resources, execute a callback after each individual request has been made and finally, a final callback that can assume all said resources are available. ...
1
vote
0answers
181 views

Persistent shopping cart that allows users to do CRUD operations as well as perform a checkout

I have never dealt much with jQuery or JavaScript. The following code is something I wrote and while it is functional, I am pretty sure it is a complete mess and it could use some improvements for ...