CSS - Get property of other element

I wonder if is it possible to refer to some elements using something like the Javascript DOM, without using Javascript or other programming languages. This is what I mean. Suppose that we have two divs that should have the same height. I would like t...
more »

2017-03-21 21:03 (4) Answers

Jquery .empty() first 2 elements

The jquery method .empty() removes all child nodes of an element. How can I specify using .empty() to remove the first 2-3 or the last 2-3 elements? docs: This method removes not only child (and other descendant) elements, but also any text wi...
more »

2017-03-21 11:03 (3) Answers

Body tabIndex="-1"

I use chromium. Navigation in the application by pressing the tab key returns the elements tabindex = "0". Other elements skip tabindex = "- 1". But does not skip. What is the reason for this? ...
more »

2017-03-21 09:03 (0) Answers

Why isnt my JavaScript not styling my header

So i went as far as creating an entirely new HTML document to change my H1 class to a different color. Can someone please tell me why its not working? I dont understat because I literally copied exactly how to change the color and I've done it before...
more »

2017-03-20 21:03 (3) Answers

Is `this` a DOM object or a jQuery object?

I am having a little difficulty understanding this jquery snippet. Particularly if a DOM object or a jquery object is used. Here is the code $(".foo").click(function() { var displayTool = $(this).find(".tool-name").text() //is this a jquery obj...
more »

2017-03-20 18:03 (1) Answers

Jquery nth-child removal

I have 3 images <img> <img> <img> When I remove an image $('img:nth-child(1)').remove(); It and then add another one. $( '.hero .trim').append($img); then try to remove the first one again $('img:nth-child(1)').remove()...
more »

2017-03-20 16:03 (3) Answers

Xpath get a if href contains part of string

Hi there I tried to get all elements which contain href=/p/{random}/?tagged=see Here is my line //div[preceding::h2[text()='Most recent']]/div/div/a[@href='/p/*/?tagged=see'] How I can fix this code, I must replace the '*' with something else? ...
more »

2017-03-20 11:03 (1) Answers

VBA - Accessing html tag inside html tag

I'm new to VBA. My goal is to access a site and put my login details into it automatically. This will be the first step into ripping info from reports and putting them in a spreadsheet. I'm unable to show the site due to privacy issues. Work related...
more »

2017-03-20 06:03 (0) Answers

Handlebars not displaying any data template7

Hello and sorry it's my first try to do anything with framework7. I'm trying to list my json items (places.json) here but when I Click on menu item for historic places in that page I handlebars as plain text instead of values. I'm using an app exampl...
more »

2017-03-20 00:03 (1) Answers

JS swapping an image smoothly

I already have a function to swap the images, but they swap without any animation. Now I want a function witch swaps the images with a fading. Here is my written code for the swap function: var header = new Array(); header[0] = "images/lan/IMG_2799....
more »

2017-03-19 22:03 (1) Answers

Get innerHTML from DOM in PHP?

I have a few divs <div class="appname">Name 1</div> <div class="appname">Name 2</div> <div class="appname">Name 3</div> I use DOM and getElementsByClassName('appname') to parse it using PHP. I want to print out ...
more »

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

Scope inheritance not working - Javascript

function updateStrandDataOnPage(strands, cableID){ console.log(strands); var tubesOnPage = document.getElementsByClassName("tube"); console.log(tubesOnPage); if(strands.length != 0){ for(var i=0; i<tubesOnPage.length; i++)...
more »

2017-03-19 02:03 (0) Answers