Questions tagged as 'dom'

1
answer

How do I know which script manipulated a gift and modified the HTML attributes?

Is it possible to know through the console?    Imagine this story: You have several JavaScript files embedded in the header of the page, and when you submit a post, nothing appears in the return input, however it's not from PHP that it's do...
asked by 31.03.2016 / 15:41
1
answer

What is the compatibility with browsers when using the template tag?

Reference: link Example usage: Javascript: window.onload = function() { var contentHTML = document.getElementById("teste").content; var linha = document.importNode(contentHTML, true); document.getElementById("tabela").appendChil...
asked by 30.06.2016 / 17:41
1
answer

Get the value of the input closest to a [duplicate]

Given the code below, how do I get from button.like or button.dislike , to the value of input#avaliacao_item_id (2) by jQuery? <td> <button type="button" class="btn btn-primary btn-md like"> 0 <sp...
asked by 31.08.2014 / 22:22
1
answer

Decode email characters

I am trying to import data from an email and I can get the data, however some characters come in an encoding that I did not find how to convert, for example. Goioer=C3=AA Paran=C3=A1 I tried utf8_decode, quoted_printable_decode, and other f...
asked by 01.04.2014 / 22:05
2
answers

How do I join results from different foreach in an array?

I'm getting movie info from a movie site using Simple Html Dom. <?php include("simple_html_dom.php"); $html = file_get_html("http://arcoplex.com.br/?lang=059"); To get the titles of the movies I do: foreach($html->find('.Cartaz .f...
asked by 24.09.2018 / 19:15
1
answer

Assigning value to a specific input

Good morning person, I'm having trouble making a code. I have several Inputs that are dynamically created. I need to get the ID of the specific element to change its value. EX: I have the following fields: Days, Absences, Vacancy, Licen...
asked by 10.07.2018 / 14:10
1
answer

Convert a jquery string to pure Javascript

I have a jquery code that would like to convert it to pure javascript, DOM. Can anyone help me? var mobileItems = jQuery( '#slide-out .nav-mobile .main-menu' ); mobileItems.find( 'li.menu-item-has-children' ).append( '<i class="mobile-arrow...
asked by 21.01.2018 / 17:27
1
answer

How to create a gift without javascript?

I wonder if a web browser, just like firefox, chrome etc. uses javascript to make dom in html! So, is the javascript that makes the dom in html? Like this, when the browser does the rendering it does the right gift? Is this gift made with the ja...
asked by 28.05.2017 / 18:44
1
answer

Recreate HTML elements from one Div to another Div by ClassName

Well, some will suggest me to use cloneNode(true) of Javascript to make a appendChild(var) in the DOM . But for this case, I already used this native feature, but it did not meet my need. Why, when I make a faithful clone of yo...
asked by 08.04.2017 / 16:57
1
answer

transition between main container for a new container in Javascript using DOM

Hello, I have a function in Javascript using DOM to create a page and then I want to display this same page in the container and for this the data displayed would have to be only the intended one and only that container does...
asked by 08.05.2016 / 02:32