Questions tagged as 'append'

1
answer

How to return the id of dynamically inserted elements?

How to return the id of a dynamically inserted element? I do not know where I'm going wrong. When the elements are already on the page, it works normal, but all it takes is to be dynamically inserted to stop working. if($("#_INSERIR_").len...
asked by 26.08.2016 / 23:11
2
answers

Error caused by line break in append

In jquery, if I enter the following code, the error: variavel.append('<div class="qualquer"> <div class="subdivs"> conteudo da subdiv </div>...
asked by 31.08.2015 / 23:03
1
answer

Problems with JavaScript HTML function does not show content in page source code

For JavaScript functions that add HTML content, these added content is not being displayed in the source code of the page, even though it's working. Example: <html> <head> <script type="text/javascript"...
asked by 23.04.2018 / 02:28
0
answers

AppendTo (script / script) does not execute the added script

I'm creating a light box so that it runs based on the click on a link. The light box works normally and I can add content inside it smoothly. The question is that in this particular I need to add a javascript that pulls one of my forms. Th...
asked by 27.12.2017 / 12:24
1
answer

List append on for loop - Swift 3 / Xcode 8 [closed]

I'm having a problem adding items to a list inside the 'for' loop, where all items in the list are repeated with the last value entered. Here's my NSManagedObject list var listCursosNovos: [Cursos] = [] Here's my loop: for i in 0..&l...
asked by 23.01.2017 / 01:34
1
answer

Create a list of dict python

I have the following function in python def playersID(self, listDetals): listPlayersID = [] tempDict = {} for x in listDetals: for y in x['result']['players']: tempDict.clear()...
asked by 05.09.2015 / 02:04
2
answers

Copy the value of a variable type list, to another in python

I am declaring an X variable with the value of another Y using = , but when having a append in the variable X >, Y also changes. Code: ''' Resultado obtido: ['casaRJ', 'casaSP', 'casaDF', 'apRJ', 'apSP']...
asked by 30.12.2018 / 21:20
1
answer

python - Print, by line, the letter and nickname method append ()

Based on the following list: escritores = [['Pedro', 'Tamen'], ['Almeida', 'Garrett'], ['Camilo', 'Pessanha'], ['Almada', 'Negreiros'], ['Ibn', 'Bassam'], ['Antonio', 'Aleixo'], ['Ricardo', 'Reis'], ['Mario', 'Sá-Carneiro'], ['Mario', 'Cesarin...
asked by 03.05.2018 / 11:44
2
answers

How to add two li in one ul dynamically with jQuery?

html: <ul> <li>1</li> <li>2</li> Adicionar aqui <li>5</li> </ul> I need to add two li where it says "Add here". Does anyone know how to do this using jQuery?     
asked by 06.04.2018 / 23:00
1
answer

input inserted with "append" is not "recognized"

To try to make a form a little more dynamic! However, when adding new inputs with append of javascript, it is not recognized. And the effect is not realized. The effect in question is the redisplay of the text typed in the input A_1 in...
asked by 17.08.2015 / 04:00