Category "jquery"

How can we create a custom jquery plugin using typescript?

I need to use a jquery custom plugin in my application and how can i create a custom jquery plugin using typescript. I have googled a lot and i just got below l

Cannot read property '0' of undefined in jquery

<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <meta ch

jQuery ID starts with

I am trying to get all elements with an id starting with some value. Below is my jQuery code. I am trying to use a JavaScript variable when searching for items.

jQuery ID starts with

I am trying to get all elements with an id starting with some value. Below is my jQuery code. I am trying to use a JavaScript variable when searching for items.

jQuery doesn't know function scrollTop

I want do create a div, which is scrollable in y-direction, but is fixed in x-direction. I already got help with it, here it works: http://jsfiddle.net/Q4dWz/

Event for resize stopped

Is there an event that tells me when the user has stopped resizing by letting go of the mouse button? I'm looking at $(window).resize, and it's firing for ever

Change and blur events of input field are not fired

At least IE9 and IE10 have strange behaviour. I have four input fields and subscribe on their change events. I have logic which disables first input field insid

Adding items in DOM with jQuery without browser scrollbar update

I am adding many <li> to a <ul> using jQuery with the append method. When there is more <li> than the browser space can accomodate, I expecte

Select items in multiselect dropdown list MVC3 jquery

How can i set values in a multiselect dropdownlist using jquery.I am using MVC3 Razor view to display the multiselect dropdown and using http://quasipartikel.a

Center text next to image in dynamically created div. jQuery

At the moment, the text is aligned with the top of the image. Is there any way for me to pad the text down so it is aligned with the center of the image? Any p

I need to define <?php bloginfo('template_directory'); ?> within my jQuery script. How?

I know that when using Wordpress, in a php file you can say <img src="<?php bloginfo('template_directory'); ?>/images/image.png"/> and it knows t

Internet Explorer leaks click event after adding an overlay in a jQuery mousedown handler

In a mousedown event-handler of a div another new div is created and appended to the body. This new div has position:fixed (can also be position:absolute) and h

How to save an image to localStorage and display it on the next page?

So, basically, I need to upload a single image, save it to localStorage, then display it on the next page. Currently, I have my HTML file upload: <input ty

How to make a regex for textarea?

I have this code var message_regex = /^.{10,500}$/; I want the user to enter a minimum of 10 characters, But it doesn't matter how much words I enter my err

Problem getting jQuery script to work as expected

I am new to jQuery. I want a simple list. I just want to show and hide the additional details. <ul> <li><div onclick="show()"><img src="p

Best way to capture all key events for a web application?

I'm a little distraught at the current state of key capturing for web applications. It works great as long as you know your user is going to be typing in a spec

How to print properly HTML table do PDF using jspdf.js?

here is what i am trying to achieve, i trying to print a html table that included HTML table inside too loop my detail (i have header and detail) data. But when

How to use jquery in ASP.​NET Core

I created a ASP.NET core template and wrote a jquery script. When I look at the page I see that jquery is loaded into the page, but the script doesn’t run

Checking something isEmpty in Javascript?

How can I check if a variable is empty in Javascript? if(response.photo) is empty { do something else { do something else } response.photo was from JSO

Populate Dynamic Dropdowns List in Codeigniter

Database inlcude Groups like Arts,Science and IT.By Choosing one Group Second Dynamic Dropdown appear which will show the Subjects Related to Group. This is my