Category "jquery"

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

Insert Text into a Form in iFrame and click on Submit

Alright. I basically want to create an iframe on my website which leads to my other website. On my iFramed website I have a form with a Text Field and a Submi

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

Here is the deal: This area is a preparation for a dynamic chart where I'm opening a new select input when my first select input is selected. With its value(fro

slippry slider image slides displaying at once on page load

I'm using slippry slider for my carousel and the issue I have is that all the slides display in a list, then on page load then after about a second the slider f

Validate password and confirm password fields using bootstrap validator

I have stuck with adding and removing the bootstrap validator class through Jquery. I am adding validation if div is visible and remove if div is hidden. Here i

How to add footer on last page on print into datatables

I am using datatable to show list of records. To print this list, I am using print button of datatable. I want footer of table into print view because it has to

Fetch selected item of DropDownList using $(this) object

How do I fetch the selected item of a DropDownList using $(this)? I have two DropDownLists in a web page. I want to get the selected item name. I tried 3 ways a

Self Hosted WCF REST service JSON POST Method Not Allowed

I have literally seen thousands of these "WCF" questions on the internet so far, but I am beginning to think that it is impossible. Please someone tell me I am

JQuery: how to exclude from selection div elements that contain a span element?

I have selected a group of div elements from a table, filtered the selection to only the div elements that contain the class __gwt_cell, and I have saved them i

Datatable styling so bootstrap button appears on same row as other elements

I'm using jQuery DataTables plugin and Bootstrap on my rails site. I can't get my custom button and other table header elements to nest in the same row, They ar