Replace space ' ' by '-' on keyup

Hello i have two inputs and when im writing in the first input, with keyup jquery function im writing automatically in the second input field. But I want to write line instead of space to the second input field when im clicking the spacebar. For ex...
more »

2017-02-13 22:02 (3) Answers

Carousel - associate text with images in slider

I am using Owl Carousel (https://owlcarousel2.github.io/OwlCarousel2/) for a simple carousel on my website. I'd like to have a different piece of text displaying over each image. As you can see, I can click the dots and they change which one is acti...
more »

2017-02-13 21:02 (2) Answers

Get Filtered Datas in dataAdapter in JQXGrid

I have used JQXGrid in my application. In Initial Load, datas are retrieved from server and loaded into dataAdapter and that dataAdapter is used as source for grid. When I filter any column in the grid i need to have those filtered datas alone in the...
more »

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

jQuery - insertBefore() for raw text

I use jQuery 1.11.2 and jQuery-migrate 1.2.1. Here is the simple example of what I'm trying to do: https://jsfiddle.net/bek3wrug/ I want to insert some text (not fully-wrapped into HTML tag) before some element on page, and jQuery only inserts the ...
more »

2017-02-13 10:02 (2) Answers

Search multiple strings in sentences

I try to search "ego d16" in a list like ego fara d16 ego d16 ego d22 d16 ego para ego dela d16 Must result in lines (1, 2, 4, 5)... My code is var filter = $(this).val(); //like 'ego d16' $("#rezultate li").each(function () { if ($(this)[0...
more »

2017-02-13 01:02 (3) Answers

Javascript innerHtml quiz results

I want to return the output of the score from a three button radio button quiz. I have the ouput working when I use alert but as the quiz is contained within a modal I don't want a popup I just want to display the output as within the modal to make i...
more »

2017-02-12 18:02 (1) Answers

jQuery .find() inside .each() not working

Currently I'm stuck in a very basic jQuery problem. I think there's something I do not understand about jquery's .each(). So this is my code: $('.test-list .test-item').each(() => { console.log($(this).find('.test-paragraph').text()...
more »

2017-02-12 16:02 (1) Answers

Prevent navigation and get the target link

I want to make my website faster by changing the content code via Ajax instead of navigating and reloading the page. But I also care about non-Javascript users so I want to use normal links instead of onclick event. And I want to prevent navigating a...
more »

2017-02-12 15:02 (2) Answers

javascript asynchonously update a div

I need to show multiple images in a DIV in a web page one after another. There should be a time gap between two images. Here is the code I tried for that. $('#abc').prepend('<img id="theImg" src="D:/Image_Store/Character/Animal/Pet/cat2.png" />...
more »

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

create div where i click within the container

Here's a sample of creating a div next to the cursor position on click: view sample It creates a div where i click inside the container div but clicking too close to the borders creates a div beyond the container. Divs created should appear entirely...
more »

2017-02-12 13:02 (3) Answers

Select all divs with specified string

$("#slide") code formating i've got something like this, i want my function to select all id's starting from slide, slide1, slide2 etc. In bash there is slide*, which does that job, is there anything like this in jquery? Thank you for your help ...
more »

2017-02-12 03:02 (4) Answers

Tooltip with buttons and image

I am trying to create a tooltip with buttons (Just like LinkedIn) for example. This is what I have tried so far: (but stuck from here) .tooltip{ display: inline; color:black; position: relative; top:200px; } .tooltip:hover:after...
more »

2017-02-11 10:02 (1) Answers

Undefined array after pushed values

Tried to push two values to an array to later use the values for db integration. Adding the values to the array is going smoothly, however when fetching the values it returns undefined. var array = []; var lat = 54.333; var lng = 12.556; array.pus...
more »

2017-02-11 04:02 (3) Answers

jQuery click not being recognized

Im creating a signup page for my website but it is not responding to a click. I have the jQuery in a seperate file called signup.js. I know it is linked properly because an alert works. Any help would be apreciated. Thanks html: <html> &...
more »

2017-02-10 12:02 (4) Answers

Disable Submit on input character count limit

I have my solution working 90%, and the Submit button disables when the user type more that the allowed characters, but as soon as the user clicks into the next input the button is enabled again. At the bottom i tried to add an if statement but it s...
more »

2017-02-10 10:02 (7) Answers

how to make only one switch button enabled

I have three switch buttons in my form and I want that user can switch on one button and others became automatically off. I do not want to use typical radio button in my form. I get switch button from : http://www.w3schools.com/howto/howto_css_switch...
more »

2017-02-10 07:02 (3) Answers

How to change text of nodelist

When I use this code in the console: document.querySelectorAll("a.pointer[title='Average']") It returns a list of Averages, each of which displays text on the page: <a class="pointer" title="Average" onclick="showScoretab(this)">421.95&l...
more »

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