Category "jquery"

jQuery Ajax Post with data

why it isn't working. Am trying to call a php file when onclick of a button occurs with some parameters. It is getting executed till alert statement in jsfile.j

Using jQuery one() function as a hack to prevent multiple click events from firing

I've having this weird issue where toggling the visibility of a button seems to influence how many times a click event gets called on that button. If I use: $('

Cannot trigger submit from JavaScript

I am trying to create a popup for a search box and submit the keyword with a form. I browse similar questions on the internet but the only solution I applied is

Bootstrap button text color

I am using the bootstrap 3 custom buttons but cant for some reason change the brand text colour nor the dropdown triangles. i've tried a couple of things, but s

Width of Chosen dropdowns near zero when starting in collapsed Bootstrap accordion

When a Chosen dropdown is inside a Bootstrap 3 accordion that's initially hidden, then the width of the dropdown is near zero. After expanding it looks like thi

Slick slider custom dots

I was wondering if there is a way to use custom slick slider dots. When I search, all I can finds is examples on how to change the dots into thumbnails from the

Adding event hovertext in fullcalendar

I'm trying to include a hover text on events in a month calendar page of full calendar. I have and array object declaring the events that need to be on the pag

Disallow Twitter Bootstrap modal window from closing

I am creating a modal window using Twitter Bootstrap. The default behavior is if you click outside the modal area, the modal will automatically close. I would l

JavaScript runs in Firefox, but not IE or Chrome?

I have the following JavaScript in my site : $(function() { var $cells = $("td"); $("#search").keyup(function() { var val = $.trim(this.value)

How to enable CORS in flask

I am trying to make a cross origin request using jquery but it keeps being reject with the message XMLHttpRequest cannot load http://... No 'Access-Control

jQuery Autocomplete select: function not working

This seems so simple, yet I cannot seem to get it to work: var options, a; jQuery(function(){ options = { serviceUrl:'ajax/parts_by_partno.php', select

AngularJS: How to jasmine test callback function in directive?

I have a very simple directive which creates a HighCharts graph. I have only included the most important for this question: angular.module('myModule').directiv

Programmatically set the value of a Select2 ajax

I have a Select2 auto-complete input (built via SonataAdmin), but cannot for the life of me figure out how to programmatically set it to a known key/value pair.

jQuery Stopwatch with milliseconds

I've found this usefull JS in jQuery for a stopwatch having hours, minutes and seconds. http://daokun.webs.com/jquery.stopwatch.js Thing is, the hour counter i

First time trying to create a draggable div in jQuery but it doesn't work

The code in my eyes has nothing wrong with it it should have worked but didn't. Why is the div I created not draggable? </html> <!DOCTYPE html> <

ol list counter reset based on start property using jquery

I need to make a jquery script that can take the OL start properly and transform it into a css based counter. So for a html like this: <ol > <li>F

Stop two or more click events from the same click event

I have created a button in jsp page and i have written two click functions for the same button, one with the tag and the other with the class/id of the button.

How to read line by line of a text area HTML tag

I have a text area where each line contains Integer value like follows 1234 4321 123445 I want to check if the user has really enetered vali

IE issues with 'focus' event

I have an app that must run in IE 7/8(compat). (I know, right?) The app includes the following functionality.... If I click on a dropdown list, the list checks

Does async programming mean multi-threading?

lets talk about JavaScript code which has setInterval methods every 2 sec. I also have a onblur animation event for some control. In a case where onblur occurs