DynamicForm + javascript

Javascript
I have some dynamic forms working in Yii2 and it works fine for me, but I need to add a little function to get cost price and sale price. It is work i...
1 year ago

Javascript Closure vs Javascript OO

Javascript
I was reading Closures and it has the example of the following closure. var makeCounter = function() { var privateCounter = 0; function changeBy(va...
2 years ago

DOM access through javascript - Javascript

HTML
I am accessing a children of a DIV element on Facebook post which I am going to use on my chrome extension. I am trying to get the innerText of that e...
1 year ago

Generate a string of 5 random characters in JavaScript

Javascript
I want a 5 character string composed of characters picked randomly from the set [a-zA-Z0-9]. What's the best way to do this with JavaScript? ...
2 years ago

How to build a panel that detects both swipe and click events

Javascript
Using dojo.gesture.swipe I'd like to be able to listen to any swipe event on a panel and change it's content accordingly: on(myPanel, swipe.end, lang...
2 years ago

How to show or hide the heading in php

Javascript
Hi i need to hide the text once i click on add button and the form should be displayed.Here is my code. <h2 style="font-size: 2em; margin-bottom: ...
2 years ago

How to change options of <select> with jQuery?

Javascript
Suppose a list of options is available, how do you update the &lt;select&gt; with new &lt;option&gt;s? ...
2 years ago

jquery : how to use keyboard shortcut F2 and F3

Javascript
Good day, Im wondering if we can use keyboard shortcut F2 and F3 to execute function. If got, maybe can share your code to me. Below my idea to make ...
2 years ago

jQuery or javascript to find memory usage of page

Javascript
Is there a way to find out how much memory is being used by a web page, or by my jquery application? Here's my situation: I'm building a data heavy...
2 years ago

How do you swap DIVs on mouseover? (jquery?)

Javascript
This most be the second most simple rollover effect, still I don't find any simple solution. Wanted: I have a list of items and a correspoding list o...
2 years ago

jquery fancybox content not centering in Chrome

Javascript
It's a css problem I figure, but nothing I do makes Chrome place the contents of the fancybox sit right in the centre. Not the centre of the screen; t...
2 years ago

How to create a responsive table using offsetWidth?

Javascript
I have an AngularJS application with a table and I want to obtain this scenario: First: I want to a have a fluid table using the table bootstrap clas...
2 years ago

How to enable or disable an anchor using jQuery?

Javascript
How to enable or disable an anchor using jQuery?
2 years ago

Get hash value from url

Javascript
I'm trying to get the hash value after a link was clicked. Any ideas? e.g. The Link index.html#needThis This is my result: index.htmlneedThis ...
2 years ago

Dynamic button groups in Bootstrap

Javascript
I wonder if there is a way to make button group dynamic, example: http://www.bootply.com/lkJQ2WDubH in result you can see first line and second line. ...
2 years ago

Sorting large number of DOM elements

Javascript
I'm pulling a large number of nodes from sharepoint list and I'll try to sort them into a html table hopefully in orderly fashion. The way i need to d...
2 years ago

change the layout of jquery-steps plugin

Javascript
I'm trying to reconfigure the layout of the jquery-steps plugin. I suppose it's fairly simple task.. but I can't figure it myself. I would like to sw...
2 years ago

Using jQuery to group varying number of divs wtih same class until "last" class

Javascript
I've seen other related questions but not quite like mine. I have blocks of code with varying number of rows and want to group those rows, including ...
2 years ago

setTimeout() in for each loop doesn't work

Javascript
I have to make a board as an assignment which lights up 1 by 1 like the sci-fi movie “Close Encounters of the Third Kind”. The main objective here is ...
2 years ago

jQuery check if any text input has value

Javascript
I want to ask if there's a better way in jQuery to select multiple text input then check if any of them has a value. Here's my code: if ($("#referen...
2 years ago