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...
2 years 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...
3 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...
2 years ago

Chart.js not working on Angular 1.5?

Javascript
I'm doing some tests with Angular, and wanted to try this cool library to make a test applcation, but it's not working: ReferenceError: Chart is not ...
3 years ago

AngularJS "{{}}" insite title attribute isn't working

Javascript
I using this HTML & AngularJS code: <td class="domain-col" ng-init="msg='error message'"> <span class="label label-warning" ng-show=...
3 years ago

Set value of input type date bug

Javascript
I have 2 fields input and output dates. On certain conditions I set the endDate to be 1 year ahead of start date. <input type='date' id='endDate'&...
3 years ago

How to filter JSON Data in JavaScript or jQuery?

Javascript
How to filter JSON data using Javascript or jQuery? This my JSON data: [{"name":"Lenovo Thinkpad 41A4298","website":"google"}, {"name":"Lenovo Think...
3 years ago

Tabindex and overflow:hidden

Javascript
I have a problem. I have an Instagram feed by Instagrams API, which pulls image, likes, comments and description. The description under the image is s...
3 years ago

How to set the style -webkit-transform dynamically using Javascript?

Javascript
I want to change the -webkit-transform: rotate() property using Javascript dynamically. But the commonly used setAttribute is not working: img.setAtt...
3 years ago

Protractor failed to getText of input from list

Javascript
I try to use Protractor to test a list of settings form. Here is my test code : describe('Settings View', function() { it('add data to settings'...
3 years ago

If a word is highlighted and user clicks the connecting word, highlight both

Javascript
I recently posted a question asking for a way to highlight words smarter by: Single-click highlights the whole word (default behavior is double-cli...
3 years ago

Modal popup is not working properly, its calling a function multiple times - click event handler runs several times

Javascript
here is the JSP code for modal <div class="modal hide fade" id="showDupZip"> <div class="modal-header portlet box bd-grey "> ...
3 years ago

Scale a number by given range

Javascript
I have a UI slider that returns a value in the range of 0 - 1 based on it's position, e.g.: 0 0.008333333333333333 0.041666666666666664 ...
3 years ago

Ajax.BeginForm in MVC to upload files

Javascript
I was trying to use an example mentioned here How to do a ASP.NET MVC Ajax form post with multipart/form-data? But I keep getting "fail" error messag...
3 years ago

ASP.NET Custom Required Field Validator With CheckBox

Javascript
Hello, I have to implement a form like above. Apart from other required fields, text boxes near the check boxes are not required to be filled in unl...
3 years ago

UserAgent Mobile and Tablet Conflict

Javascript
I am creating an application, desktop and tablet are responsive whereas Mobile is adaptive. So I Have to check the condition based on that I have to r...
3 years ago

Javascript code not running inside onload function

Javascript
Hi guys i am wondering why this code does not work , i am new to javascript and playing around with it. When i put it inside the onload function it do...
3 years ago

Sort jQuery Result By Attribute?

Javascript
Is it possible to sort a jQuery result by an attribute's value? For example, consider the following code snippet and result: $('span').each(funct...
3 years ago

Build Modal Dynamically

Javascript
How can I run the modal and build the modal from dynamically create elements. Example, I have a button that I want to launch the modal, which is dyn...
3 years ago

jQuery.tubular not accepting input

Javascript
I am currently using jQuery.tubular (Here) to display a YT video in the background, where the ID is fetched using the YouTube Data API. Tubular loads,...
3 years ago