Select tab to open after submitting.

Im working on a Laravel web application. In that application I have tabs one of which is a quiz written in PHP. When I submit the quiz the page reloads and the answers are returned but I cant get the page to load the tab with the quiz. Any suggestion...
more »

2017-08-15 23:08 (1) Answers

Bootstrap Toggle with jQuery Validation

I tested over and over and it seems there is something conflicting between these 2 scripts: bootstrap toggle and jquery validator. If I remove data-toggle=" toggle" the checkbox is required for validation, otherwise it just passes regardless of being...
more »

2017-08-15 16:08 (0) Answers

Different URL path

How to set URL in JavaScript (jQuery) when I deploy application in IIS, please? In Visual Studio this URL works (without path): url: '/street/details/', but in IIS this URL is correct url: '**/utca**/street/details/'. I want to modify the URLs...
more »

2017-08-15 15:08 (1) Answers

Jquery - Assign array values to dropdowns

I have dropdowns that are being appended dynamically on a page and on the same page, there's an array being posted, so that, the length of the array will always equal the number of dropdowns appended. For example: <select name="cavie" class="opti...
more »

2017-08-15 15:08 (4) Answers

jQuery Validate Plugin Not Submitting Form

I'm using the jQuery validation plugin from There is nothing special about the actual form itself, it just uses default markup really. The issue I have is the form doesn't actually submit on a valid form and requires m...
more »

2017-08-15 10:08 (0) Answers

Need to add tags and normal text in same input box

I need to add tags and text in the same input box. The normal text can be delete a character at once. The tags which will be selected from a particular set of words which are pre defined will be deleted all at once. The normal text and tags will be ...
more »

2017-08-15 06:08 (1) Answers

Valid inputs and use animation untill page load

I need to validate filled inputs and on submit if all inputs are valid show load animation till next page will shown. I can check for validation one by one, but do not know how to collect them all in one. Maybe there are more simple way to check inpu...
more »

2017-08-14 22:08 (1) Answers

Javascript sort table with several heads

I have this table structure: Fiddle: I am now trying to sort the table by the header "Example Timestamp" in such a way, that the headers are getting sorted as well as the content below the headers. When the sorting ...
more »

2017-08-14 13:08 (0) Answers

Caching issue in IE browser for PDF download

I am having caching issue in IE browser. My web page has download pdf functionality. The server provides the file contents which is then manipulated as a blob object and then inputted to filesaver.js.Each time I download a pdf the older file is being...
more »

2017-08-14 12:08 (1) Answers

Svg click events not working properly

I am trying to make my SVGs look like a "pie shape" which appears to be all fine, besides, i want each of them to have a different click event. function one() { alert("1"); } function two() { alert("2"); } function three() { a...
more »

2017-08-14 11:08 (1) Answers

Array to google charts

I'm trying to pass an array of numbers to a google charts, that array is being pulled by this code from a div with a class .likescount var i, $mvar = $('.likescount'); // using the $ prefix to use the "jQuery wrapped var" convention function logit(...
more »

2017-08-14 08:08 (2) Answers

repeat div element n times

how can i duplicate a div so there n copies using javascript or jquery this is the HTML div : <div id="Guest_details_and_servicesDIV" style="background-color: white;min-height: 128px;display:none;"> @{ ...
more »

2017-08-13 15:08 (1) Answers

Selfmade jQuery cannot handle event properly

Update: It might be the jQuery's trigger() do some extra works in testings, I opened a issue on github. ===== I'm following learnQuery to build my simple jQuery. Now working on DOM event , implement on() and off() function. They provided some testi...
more »

2017-08-13 14:08 (2) Answers

Double alert message

Hello i am trying to learn some validation with jquery and when i make the errors for each field i got 2 messages in alert, here is my project jsfiddle function isEmail(email) { var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{...
more »

2017-08-12 21:08 (3) Answers

how to slideToggle an input with it's placeholder

guys, I wrote a code that whenever I click on a button (that plus sign) my input should slide but as you see my running code whenever I click that button first it start sliding the input until it reaches the placeholder then it starts sliding placeho...
more »

2017-08-12 19:08 (1) Answers

jQuery: appendTo() and wrong parent()

My goal is to move an element outside it's parent so I can safely remove its parent and preserve that element. My code is below: var parent = $(this).parent(); $(this).addClass('hidden').appendTo('body'); parent.remove(); The problem is, instead o...
more »

2017-08-12 14:08 (1) Answers