Category "jquery"

How do I refresh a DIV content?

<div id='here'></div> I am trying to refresh a certain div within a bunch of divs. The div content is basically generated by PHP along with data f

_TOTAL_ token not displaying the number of records in datatable

I am trying to use datatables and i want to display the total number of records in the top left where i have the option to change the number of rows my cod

How to programmatically fill out Microsoft Office Forms form?

My company has a Microsoft Form that I have to fill out around 10 times every month, but the actual form data that I input doesn't change very much. For the fie

Why does my jQuery .done function not fire after .when code?

I tried to load some scripts with jQuery, and after the download is finished I want to execute some code. I expected to get alert(1) called but nothing happens.

Upload file to my google drive with Google Apps Script (NO FORM IN GOOGLE)

so basically the task is quite simple, but I didn't find any workable solution for my problem. I have a huge upload script on my website (at the moment localhos

Is it possible to export multiple datatables at once?

I need to export multiple datatables in single page and have one export button for all the tables on the page? Any link for suggestions. Thanks!

Variable is not defined

I'm working on a jquery where user selects a category and then a range of years. my problem is I'm getting cats is not defined although it is, and I can see it

FullCalendar V2 Event Title cut off in month view

After upgrading to V2 of jquery fullcalendar I noticed that events with long titles had the title cut off. I worked around this issue by adding CSS, but now an

How to Compress JSON data in angular 4 app using gzip compression & send it to server using Http post?

I am using pako library for compression: var binaryString = pako.gzip(data); At server side (.net core) i am using middleware to decomopress the zipped stri

if the browser window is below a certain height addClass to an element [closed]

I would like to addClass to an element if the browser window is below a certain size via height; when and only if the height is below a certai

Textarea doesn't break line on 'enter' press

I have a project with a lot of libraries, like jQuery, Kendo and AngularJS. After an update with many commits textarea stopped breaking to a new line by [Enter]

Return "success" message after form submit

I am trying to return a "Thank you" message after a successful jquery email validation and form submission. I want to show the "Thank you" message and prevent t

Open a popup box after receiving result from ajax

i have a ajax code that works properly and gives the desired result. I want to modify this code and want that when a reply is received from ajax a popup/modal b

Optional decimal with jQuery-Mask-Plugin

I am trying to implement a mask using jQuery-Mask-Plugin https://igorescobar.github.io/jQuery-Mask-Plugin/docs.html#field-options From the doc this will allow

php mysql + create a friend request system

i am creating a friend request system that allow user to send request to each other to add as friends like facebook and i have 2 conditions that if : the us

Laravel csrf token mismatch for ajax POST Request

I am trying to delete data from database via ajax. HTML: @foreach($a as $lis) //some code <a href="#" class="delteadd" id="{{$lis['id']}}">Delete<

Jquery - Append vs AppendTo

Can somebody explain me why regular Append into a loop works better than AppendTo? //Using Regular Append var ul = $("<ul></ul>"); $("#myDiv").empt

How to open select file dialog via js?

$('#id').click(); It doesn't work on Chrome 26 on Mac OS. The problem actually is creation "upload" widget that can be integrated in a form. Widget will consis

Error message color on input validation using jquery-validation and bootstrap 5

Edited: I am using jquery-validation and bootstrap 5 to validate the form and show errors messages. When I hit login without email AND password the input field

AJAX call fails with SyntaxError: Unexpected end of JSON input

Sorry for making a post with a generic error but I just can't figure this out! I have an ajax call that for now sends an empty object and just returns json_enc