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

learn more… | top users | synonyms

0
votes
0answers
20 views

JavaScript Dropdown Selector

I am just getting into front-end web development and to practice, I made a dropdown selector that allows for more styling than the regular <select> element. ...
0
votes
0answers
22 views

Expanding/contracting panel widget

Right now I'm studying OOP with js/jquery and so far upon reading tutorials over the internet and with the helping hand of google, I come up with a way to do it based on my understanding. ...
3
votes
1answer
45 views

Sliding effect with bounce

I have used animate.css and jQuery as external libs. Is there a better way of doing what I have done with jQuery? DEMO ...
-2
votes
1answer
30 views

jQuery if then loops in a better way [on hold]

The code has a lot of variables, like below: ...
3
votes
2answers
56 views
0
votes
0answers
28 views

Pagination with static data

I am using following code to implement pagination functionality. All items are rendering on page load and li elements greater than page set are hidden with CSS. I ...
2
votes
3answers
61 views

Functions between certain times of the day

I'm working on something for my school's laptops that will disable videos/games between 8:00 AM and 3:15 PM. Due to the giant time gap, I will not be waiting to see if the code functions properly or ...
1
vote
2answers
62 views

jQuery pullout functions

I am using a simple page with 2 pullout functions, one on the left and one on the right side. I would like to simplify or combine the two functions into one and make one pullout close, when I click on ...
0
votes
0answers
19 views

Calculate discipline level from attendance record given a set of rules

I have written an attendance calculator that compares a set of rules against an employee's attendance record and determines what level of progressive discipline that employee is at (how much trouble ...
3
votes
1answer
49 views

Multiple animated jQuery buttons

I've been working on this day and night and, since I'm a newbie, I can't seem to figure this out. I have a map with 27 states. Each, on click, show the highlighted state and an info box. Also, I have ...
-1
votes
1answer
27 views

Optimizing jQuery/JS Switch Statement

I am trying to optimize the following switch statement, but I'm having a brain fart about how to do it. Here's the code: ...
4
votes
2answers
49 views

Nav slider needs to be smoothed out

I created this responsive jQuery navigation which will re-size when the pixels get < 500 px and display the mobile navigation, although when the browser re-sizes > 500px it runs the widthCheck() ...
1
vote
1answer
27 views

Getting distinct array of objects

I would like to get a distinct array of objects. The code below is the first thing that came to mind. Do you see any room for improvements? ...
2
votes
2answers
49 views

Toggle code using jQuery

I have here some code which is working but it seems to be a lot of coding to do here. I would really appreciate if someone could make this simpler. ...
0
votes
0answers
20 views

Proper JS MVC / Extending

I am looking for some critique / comments / help regarding what I have written so far. Is this proper JS (jQuery)? This is my first crack at a MVC and Extending style setup. There are some standard ...
1
vote
3answers
56 views

Formatting in webpage quiz

Particularly on the CSS page, in the #question_list id, you'll see I've put a transparent border. This is obviously pointless, but without that border, my footer ...
5
votes
1answer
70 views

jQuery Datepicker Plugin

I created a jQuery plugin that converts a text field to a 3 drop down, datepicker. It allows the user to select a Day, Month and Year rather than type the date in an input box. The original input ...
0
votes
0answers
29 views

Implementing Ajax deferred/promise patterns

I have a testcase where I want to send a request to the server every time a form field change event occurs. The implementation below works as expected until I ...
10
votes
2answers
226 views

StackEgg autoclicker

I wrote a quick and dirty auto-clicker for the StackEgg. Any comments, both on code and effectiveness? ...
0
votes
1answer
43 views

Ajax Done Callback to prevent requests from interrupting each other

I am trying to make sure my Ajax does not send another request before it receives a reply. To the best of my knowledge the code I will post is supposed to do this but I am still getting a -1 for ...
0
votes
0answers
35 views

Getting ID of Task List item in Sharepoint 2013

I want to do some operation by taking an ID of a Task List item in SharePoint on UI front. I've just wrote some jQuery code by traversing the element. I got the ID and performed operations what I ...
2
votes
0answers
49 views

Game of life in JavaScript - using Table

I finished coding Conway's Game of Life in JavaScript and HTML table. logic cells in a table will be assigned with unique id's and based on the ...
6
votes
1answer
81 views

Simple todo application

I have been learning HTML/JavaScript and CSS. I have gone through some of the online tutorials, PDFs and books as well. Though, now I am familiar with syntactical stuff, I wasn't sure how I should ...
0
votes
1answer
23 views

Random fadeIn has unwanted pauses [closed]

I have a title with each character and word split into a <span>, using lettering.js. I am relatively new to jQuery and ...
2
votes
2answers
86 views

Equalizing heights

I'm running a jQuery function to equalize heights. I want to equalize the heights of several pairs of elements, and can't think of a way to do so without repeating the whole function. How can I ...
0
votes
0answers
26 views

Sorting products by name or price

Lets preface this by saying that when it comes to javascript, I am a hack. I make what I need happen by cobbling together crappy, inefficient, redundant code. I want to get better. Recently I was ...
3
votes
1answer
38 views

Bootstrap show many move one carousel modification

I've been steadily improving a show many move one carousel sample that I found a few weeks ago. I want to post my improvements for others to use but don't want to spread bad code. I'm not an expert in ...
2
votes
1answer
71 views

jQuery morphing button concept

I have written some code which makes a button morph into a container. I have written it using prototypes. I am fairly new to jQuery/JS so was looking for advice on whether this was a bad/good way to ...
1
vote
1answer
27 views

Navbar that adds and removes classes

I've written some jQuery for my navbar, but it's super sloppy and I'm always trying to write better code. ...
4
votes
1answer
61 views

Getting a value from a query string

I have a URL in this format: http://localhost:57279/AssociateCaseDetails?UId=176948&caseID=1123 I need the values of UId ...
2
votes
2answers
37 views

Identifying clicked elements

I'm relatively new to web development. I started learning JavaScript a few months ago and it's going well. I made this code for someone on fiverr, and it got the job done, but I know there's a more ...
2
votes
1answer
32 views

Show/hide description

I'm trying to keep the code as clean as possible. Is this the best approach? I don't use jQuery that often. ...
3
votes
0answers
45 views

Ajax file uploader jQuery plugin

I tried to write my first jQuery plugin. It's a very simple Ajax file uploader. I would appreciate a review of this code. HTML ...
4
votes
1answer
61 views

Simple morphing button concept

I have been making a jQuery morphing button type thing. jsFiddle ...
1
vote
0answers
64 views

Payment Gateway - single payment with credit card (handling path & choosing gateway)

This was an assignment and I am new to Node.js. You can find the complete project here. The code worked fine but was rejected, and wasn't given any reason even after asked. Statement: Create a ...
2
votes
3answers
67 views

Fixing navbar when scrolling beyond a certain number of pixels

I have written a jquery code, which fixes a navbar header on top of page when a user scrolls down to a certain pixels. But I am not sure whether is this the correct way to do this. Because this is ...
0
votes
0answers
22 views

3 selects on a page and 2 of them need to be observed for changes

There are 3 selects on a page: 2 selects are populated and 3rd empty. Onload takes both populated selects and combines them into 3rd select with groupings. An external event is simulated with button ...
0
votes
1answer
58 views

Reduce the number of elements I hover

The level 3 menu is broken in 2 parts if there are more than 10 items. The issue is with hovering over the newly created list. At this moment I have 3 functions that apply the shown-sub class. I want ...
2
votes
1answer
50 views

Tag count limiter

This is a tags counter that I implemented to a site. The script is supposed to display the number of tags that a user can still input - the limit has been set to 5 items (...
1
vote
0answers
66 views

Calendar application with shaky Logic

I have built a calendar application just with jQuery. The script file is on Github. The code works perfectly fine and I have tested it. Please feel free to clone and test as well. I am uncertain on ...
5
votes
1answer
100 views

An utterly pointless jQuery program

This is the first jQuery program I've written, and it doesn't do much, but I'd appreciate the feedback. Just click on the different colored buttons to do things. Codepen ...
1
vote
0answers
40 views

jquery .load() div content from URL with hash-sign for id [closed]

I have my page so far: einserpasch.com The crucial markup is this: ...
3
votes
1answer
120 views

Hide and show columns in an HTML table

Codepen Link I've tried to Google, but there's no library that has an API to toggle table columns when clicked elsewhere on the page, so I've decided to do this: ...
1
vote
1answer
46 views

Return fake jqXHR from custom Ajax method

I have several methods that wrap the $.ajax() method and return its jqXHR, but I need to force fail before even calling the original ...
0
votes
4answers
51 views

Account disabled and deleted functions

I have the following functions that for the most part are utilizing much of the same code (except for the actual message). What are the possibilities, if there are any, for combining / reducing these ...
1
vote
1answer
64 views

Rewriting this function to use `promises` instead of `async: false`

Using parse.com's javascript API, I would like to get a variable number or images from img tags on a page and save those images in the currently logged in user's ...
1
vote
0answers
18 views

Form valid combinations from CSV selection options

I am building a form with multiple select option fields. I am trying to only show the next field if it exists as a combination in the CSV file I am reading in. It's working fine right now and I am ...
0
votes
0answers
34 views

Make knockoutjs model simpler and avoid full observable array refresh

The form creates / updates /deletes a category. The category is simple: ID and name properties in backend (Laravel) model. UI: Clicking on a category enables "edit mode": I need 2 things here: ...
0
votes
1answer
24 views

Shorter way to add click handler to multiple IDs?

So i'm kinda new at this jQuery stuff and i've gathered up this much to make my code functional, but i would really want to shorten it. I've already tried $('#Monday','#Tuesday'....) to group them, ...