Grep all prices from file

Is it possible to grep somehow all prices from a file and list the output? Price begins with "$" and may contain digits, "," and ".". I've tried best solutions from this question, but they output all file or entire string containing a price. The pa...
more »

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

Each checkbox shows up twice

Set up: jQuery 3.2.1 Semantic UI 2.1 Chrome HTML (based on <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

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

JavaScript Function is run twice?

I'm a little bit confused. I have a checkbox that a user can click which determines whether a Private Phone number on my page should be visible to all or only the administration. When the box is clicked I wanna make sure you are allowed to first the...
more »

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

IF has 'Item Type' (Netsuite)

I need a way to specify whether a certain sales order has ANY inventory items (if yes, this will display certain formatting information on PDF/HTML template) I can't use suitescript or java or any type of coding on the Sales Order-side, so I need a ...
more »

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

ASP.NET: Change the CSS link href in code hehind?

I have an .ASPX page in which I want to change the CSS href in code behind. I searched for several tricks to do this but couldn't find anything that works as I intend. HTML Markup: <link id="linkCSS" runat="server" href='/css/1.css' rel="stylesh...
more »

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

CSS transition div width from center

I am working on a little menu animation, nothing groundbreaking but just as an experiment. This is what I currently have: HTML <div class="menu"> <div class="bar"></div> <div class="bar"></div> <div class="bar...
more »

2017-04-19 22:04 (2) 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

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

Displaying box divs inline with text under them

I have 3 images i want to display them inline style with text under them but without using bootstrap grid-system because i want them to be close to each other and centered, i tried doing it but once i add the text they get displayed under each other,...
more »

2017-04-18 20:04 (3) 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