create <div> for each word in value=""

$('input').keyup(function(){ var value = $(this).val(); $('#values').html('<div>'+value+'</div>'); }) <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <input type='te...
more »

2017-09-18 17:09 (6) Answers

Download file via button and javascript

I have an action that returns (downloads) an excel file in the following manner: public IActionResult CreateExcelFile(string id, int xx, string start, string end) { //Some additional code... // .... // .... var file = File(doc, "applicatio...
more »

2017-09-18 16:09 (1) Answers

Removing special words from Delimitted string

Ive a situation to remove some words from a delimitted string in which the last char is ¶. That means that if the string is: keyword1,keyword2,keyword3¶,keyword4,keyword5¶,keyword6 The output string should be: keyword1,keyword2,keyword4,k...
more »

2017-09-18 11:09 (5) Answers

How to parse JSON in node js?

I'm using the API's node wrapper: https://github.com/MySportsFeeds/mysportsfeeds-node/blob/master/README.md https://www.mysportsfeeds.com/data-feeds/api-docs# The call is going through fine and automatically saving on under "/results" Here's my cod...
more »

2017-09-18 08:09 (1) Answers

AngularJS do not sort in ng-repeat

AngularJS do not sort in ng-repeat. I did, <div ng-repeat="list in lists"> <div style="float: left; margin-left: 5px;"> <div id="tasks" > <h3>{{ list.name }}</h3> <ul> <li ng-repeat="card in ca...
more »

2017-09-17 19:09 (1) Answers

How to append list of string to div?

I have this div: <div id="cmplList" data-date="09/2017"></div> And this method: function test(data) { jQuery.each(data, function(index, value){ $('#cmplList').append($("ul").append($("<li>").tex...
more »

2017-09-17 15:09 (5) Answers

How to bind css animation duration to scroll

I want to make something like those website where you scroll down and some animation follows by your scrolling and if you scroll up it goes reverse. I saw some libraries like this but I want to see can it be done some more simple way? Thanks $...
more »

2017-09-17 13:09 (0) Answers