Category "jquery"

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

Simplest way to disable button on submission of a form?

I've been trying to find the "right" way to prevent double submits of forms. There are lots of related posts on SO but none of them hit the spot for me. Two q

How to display picture into div with jquery

Is anyone can tell me how can I modify below code to display picture into a div when user click in link ? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans

$(...).pagination is not a function

I'm getting that error when it reaches this line. I've confirmed that the file jquery.simplePagination.js is present before it gets executed. I also don't see t

jQuery Canvasjs Charts not displaying properly after passing data dynamically

i am trying to work on jquery canvasjs charts by passing the data dynamically from my c# codebehind. But the chart is not displaying properly. Here is the cod

Remove image dynamically using jquery by clearing the src attribute

I know one can load image dynamically using $("#id").attr("src","path of the image"), but to onload the certain image on certain event, $("id").attr("src","

Document title won't stop blicking

I'm trying to get the document title to blink whenever there's an incoming message. I was able to get the title to blink properly, however the problem I'm runni

Getting Stored JSON data after Ajax is Complete

I am currently doing an exercise on Jquery, Ajax and JSON. I have found a few ways to get data, but now I would like to store this data from JSON into a variabl