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

$('input').keyup(function(){ var value = $(this).val(); $('#values').html('<div>'+value+'</div>'); }) <script src=""></script> <input type='te...
more »

2017-09-18 17:09 (6) 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 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

jQuery click event is not working on table

I'm having a table in my react application. I'm trying to implement click event like this: $('#detailedTable tbody').on('click', 'tr', function() { //var row = $(this).parent() if ($(this).next('tr').hasClass('row-details')) { $(this...
more »

2017-09-16 13:09 (2) Answers

how to create a <img> copy to clipboard?

need some help. How do i change the below code so that i can create when user clicks the button a image tag will be copy to the clipboard and and user can paste it in the address bar <?php $arr = array('1'=>'', '2'=>'
more »

2017-09-16 06:09 (0) Answers

Delayed execution of Javascript

In my project I have a modal window where a cascading dropdownlist is shown for two properties (Family, TypeID) of a class (Machine). The issue: The dependant dropdownlist populates only when the modal window has been open for the second time. On th...
more »

2017-09-15 20:09 (2) Answers

Dropdown Click PHP Data From mysql

<div class="btn-group m-b-5"> <button type="button" data-toggle="dropdown" class="btn dropdown-toggle btn-info"> Ana Kategori <span class="caret"></span> </button> <ul role="menu" class="dr...
more »

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

HTML form with large clickable area

I am re-phrasing a similar question that I posted yesterday. I'm not sure if this is the way I was supposed to go about it. My goal is to create a form which contains several input type="hidden' elements and a click area that covers a large area of ...
more »

2017-09-15 18:09 (2) Answers

Ajax success function not receive data

Below is webmethod of my web form which is returning a List of data and it works fine: [WebMethod] public static List<SalesInvoiceFinalCalculationEntity> salesInvoiceFinalCalculaiton(string InvoiceNo) { List<SalesInvoiceFinalCalculation...
more »

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

If a div has this two classes, hide wrapper

I have a wrapper that shows an image and a star. I want to hide the wrapper if both image and star has a class named "no". It has to be both, if just only one of them has the "no" class it has to be shown. <div id="wrapper"> <a href="#" cla...
more »

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

jQuery function not working in MVC Partial View

The .hide function in my partial view is not rendering for second and third person initially, then the delay .hide and .fadein will not work either. I am new to js and jquery so I am probably missing something obvious... Why would this js script not ...
more »

2017-09-14 20:09 (3) Answers