Questions tagged [jquery]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
73 views

Why I can't make one event handler to three elements with its ID? [JQuery]

I want to trigger one function every time that the user types something in one of my desire elements (username, password or confirmation) for that, I try to implement this line of code: //Disabling ...
2
votes
1answer
387 views

CS50 Finance: Register unique username (/check) problem: pythion GET function not working

I am working on the new /check additional on the Finance problem. I am trying to prevent the register form from being submitted when the username is already taken, is empty, or is just one character. ...
0
votes
1answer
193 views

Pset 8 - Jquery of addMarker

I'm having some issues displaying the list of articles on my marker. I've definitely managed to get it to work and display things inside, but I think there's an issue with the syntax on my jquery ...
1
vote
1answer
43 views

What purpose does "eventData" serve in the pset8 source code "$("#q").focus(function(eventData)"?

I have read the jQuery documentation on .focus() as per the pset8 instructions. However, I still do not fully understand the code below: // hide info window when text box has focus $("#q").focus(...
0
votes
1answer
28 views

CS50 Final Project: Enabling a form button

So in a separate html form, I created a textarea (id: blog) and a button (id: final). I would like to disable that button when the length of the textarea is below 500, and enable it when such a length ...
0
votes
1answer
397 views

How to make a "div" clickable using Jquery

How to make a div clickable using Jquery? I tried to do the below but nothing happens, why? $(".delete").on("click", function() { $(this).closest(".card").remove(); }); }) full code: $(...
0
votes
1answer
66 views

Stuck on final project

I am implementing a tic-tac-toe AI in jquery. I am almost done, but I seem to have a problem with my check_winner() function. It is basicly the same thing as the c version. It checks rows, cols, ...
0
votes
1answer
23 views

PSet8; Why am I getting this error in my Gedit?

Just like all the psets before starting pset8 I started to practice some examples from a book, the first program I wrote is giving me this error on my editor but yet the code is running can anyone ...
0
votes
1answer
59 views

Final project: How to submit form without going to another page with Ajax/jquery?

I have a contact form where a user fills it out and takes them to another page thanking them after they hit the submit button. I was wondering how to just have the thank you message appear on the same ...
1
vote
1answer
76 views

jQuery syntax help

In looking through the source code and through examples online, I keep coming across something like: $.getJSON("test.php", parameters) .done(function (data) { // code for success }) While I can ...
0
votes
1answer
93 views

jQuery form field validation?

I finished all my psets, and was working on trying to implement some javascript in with the PHP forms we built in pset7. It seems that by building the template and the view based upon the CS50 ...