Each checkbox shows up twice

Set up: jQuery 3.2.1 Semantic UI 2.1 Chrome HTML (based on https://semantic-ui.com/modules/checkbox.html#/definition): <div id="checkboxes"> <div class="ui checkbox"> <input type="checkbox" name="checkboxes" value="che...
more »

2017-04-20 19:04 (1) Answers

Pass value from div to JS

In a php file i've a div with id and data returned, see the code please: <div id="dom-target" style="display: none;" data-stuff="2017, 8, 20, 0, 0"></div> Okay, now i need pass data-stuff value into new Date call, (is a countdown), i t...
more »

2017-04-20 17:04 (3) Answers

jQuery addclass modification

I have a question How to insert background red color only on One, Three, and Four? $(function() { $("#myid li").addClass("redcolor"); }); .redcolor { background-color: red } .abcsize { font-size: 36px } <script src="https://a...
more »

2017-04-20 12:04 (3) Answers

Switching divs via JS (ASP.NET MVC)

I have AJAX request to get Question1-Question10 from back-end Here is code of request <script> $(document).ready(function() { question_block(); }); function question_block() { $.ajax({ url: '@Url.Action("QuestionBlocks", "Int...
more »

2017-04-20 10:04 (3) Answers

Improving iScroll performance on a large table

I'm updating a table header and its first column positions programatically based on how the user scrolls around to keep them aligned. The issue I'm experiencing is that as soon as my data sets gets big enough, the scrolling gets more and more choppy...
more »

2017-04-19 21:04 (4) Answers

only change classes inside a hovered element

So I'm creating a page about user-submitted recipes. Some users have submitted a short quote about the recipe, others have not. I wanted to have the quote, if it exists, to display when the user hovers over the image of the recipe. Right now, I'm u...
more »

2017-04-19 19:04 (4) Answers

Highlighting links based on scroll position

I'm trying to get the my links to highlight if the user is scrolling over the page that is for that link. But for some reason it isn't working properly. I Have commented out my first try in jquery and tried again but link two is highlighting when lin...
more »

2017-04-19 17:04 (4) Answers

Get value from "Bootstrap-Select"

I have a selectbox and when I select the option it updates the input box with the selectbox's values. This is working with an older version of Bootstrap-Select. But in the newer version it doesn't work anymore. I am looking for a way to make this to ...
more »

2017-04-19 15:04 (2) Answers

$(this).text() excludes text after space

$('.ed_name').replaceWith(function() { return '<input placeholder=' + $(this).text() + ' value=' + $(this).html() + ' class="ed_inp">' }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script...
more »

2017-04-19 13:04 (4) Answers

opening a pdf file in modal possible?

i was thinking of opening a pdf file in modal . current using @Html.ActionLink("open file", "Download") open another windows. i want it to populate it to a div so that i can view in in modal or overlay. i am ok with jquery solution as well as cu...
more »

2017-04-19 08:04 (2) Answers

Scroll issue on .animate() and .prop()?

I have two divs with same class. If I scroll one div the other divs scroll comes to 0. I am able to achieve this with .prop() property easily. But when I use .animate() the occurrence just happens once and then it stops working(Commented the code ...
more »

2017-04-19 06:04 (1) Answers

How to sync javascript between iframes?

I am trying to sync a navigation on a web mobile site that uses iframes. When the page loads, I load two iframes, on the first one a table chart, on the second iframe (code below) a set of images, that loads one by one. On the first iframe the table...
more »

2017-04-19 04:04 (0) Answers

Stop tabbed element closing on second click

I have snippet of code that opens tabs, however I would like 1 tab to always remain open. How can I disable the second click on the tab button already open stopping the tab from closing? So referring to the fiddle, if you click 'Button 1' once, it ...
more »

2017-04-18 12:04 (3) Answers

How to add form validation along with alerts

I'm working on a simple sign up form. So far I have the form validation working but I am not sure how to get the alerts working as well. The idea is to have the user fill out their info, click submit, and an alert with their given information will po...
more »

2017-04-18 07:04 (4) Answers

Datetime displayed using JQuery Timeago

I am trying to display my date using the timeago plugin. This is what I have so far: <div class="container col-lg-12 col-md-12 col-xs-12 notifications-container"> @{ foreach (var n in Model.Notifications) { <div class="row"&...
more »

2017-04-17 20:04 (1) Answers

Increase div opacity on scroll down

I have researched lost of sources, but there are no solution for my problem. I created a div and its visibility is hidden in CSS sources. I want to get to start it from 0.1 of opacity when scroll on 200 and when scroll located on 300 opacity becomes ...
more »

2017-04-17 18:04 (2) Answers