Most voted "append" questions
42 questions
Sort by count of
-
5
votes1
answer163
viewsjQuery doubt append appendTo inject HTML
Hello, I’m having a doubt. I have a variable containing an html structure and I need to inject a basic div (< div > < / div >) around all the contents of this variable, as a parent,…
-
3
votes1
answer40
viewsStringbuilder append() converts to string automatically
Why when I use .AppendLine() it is necessary to convert the parameter to string, but when use .Append() conversion is not necessary?
-
3
votes2
answers269
viewsLength of jQuery does not update with the append, how to resolve?
I am working on a script that makes it load more records from the database when the user arrives at the end of the page scrolling. PHP/SQL is right, the problem is that jQuery does not correctly…
-
3
votes1
answer36
viewsIs it possible to create a map to position elements?
I wonder if it is possible to "pre-define" the position of an element when using a append, for example: <div id="mainDiv"> <div class="child" data-position="2"></div> <div…
-
2
votes1
answer758
viewsHow to mount an array of selected select items in html and scroll through it to organize items in javascript?
I have the code: var associar = $("#associar"); var desassociar = $("#desassociar"); var permissoes = $("#permissoes"); var minhasPermissoes = $("#minhasPermissoes"); associar.click(function() { var…
-
2
votes1
answer410
viewsWhy can’t I make an "append()" on a list formed from a "Join()"?
I started creating a list in Python leaving each element below the other through the join(). Then I tried to add an element to the list through append(): abc = '\n'.join(['a','b', 'c'])…
-
2
votes1
answer271
viewsContrary to appendHTML - how to do?
I have a label in the form of my website adding to a div (in the case of the example, the id of that div is grupoExt) an HTML content. Here is the code: var numeroFE = 2;…
-
2
votes1
answer1446
views -
2
votes1
answer993
viewsCopy the value of a list variable to a python variable
I’m declaring a variable X with the value of another Y using =, but when having do a append in the variable X, to Y also changes. Code: ''' Resultado obtido: ['casaRJ', 'casaSP', 'casaDF', 'apRJ',…
-
1
votes2
answers967
viewsError caused by line break in append
In jquery, if I insert the following code, error :: variavel.append('<div class="qualquer"> <div class="subdivs"> conteudo da subdiv </div> <div class="subdivs"> conteudo da…
-
1
votes1
answer886
viewsCreate a list of python Dict
I have the following python function def playersID(self, listDetals): listPlayersID = [] tempDict = {} for x in listDetals: for y in x['result']['players']: tempDict.clear() tempDict['match_id'] =…
-
1
votes1
answer82
viewsCapture $.getJson value is coming Undefined
I’m trying to assemble a table from a JSON that I receive from a page php, meanwhile when I do the append the captured value appears as Undefined. $.getJSON("getEventoCategoria.php", {ID_EVT_Evento:…
-
1
votes1
answer64
viewsDIV clone from one page to another
Hello I’m having trouble copying the side menu of the home page to the category page, I usually use the command below to copy div to the same page, but for different pages I’m not getting <script…
-
1
votes1
answer175
viewsHow to return the dynamically inserted element id?
How to return the id of an element inserted dynamically? I don’t know where I’m going wrong. When the elements are already on the page, it works normally, but it was enough to insert them…
-
1
votes3
answers166
viewshow to find the indexes of an item that repeats in a list in Python
have a list l = [1,6,6,2,3,6] and I want to form another with all the indexes of the element 6. In this case, the second list should be l2 = [1,2,5], however, when I try to use the l.index(6),…
-
1
votes1
answer78
viewsList append on for loop - Swift 3 / Xcode 8
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 is my Nsmanagedobject list var listCursosNovos: [Cursos]…
-
1
votes2
answers665
viewsWhen using jQuery append displays the text [Object Object] and does not insert the element
I created a div.box in html and I want to insert another div that I create in the execution of the code, follow the avaixo: HTML: <div class="box"></div> JS: var item = $('<div…
-
1
votes2
answers1655
viewsFunction append vs javascript
I have a page that generates a form dynamically using append('texto html'); These inputs that I Gero after loading the page completely, I cannot by them invoke functions js created in the page…
-
1
votes0
answers40
viewsAppendto(<script></script>) does not execute the added script
I’m creating a light box so it runs based on clicking a link. The light box works normally and I can add content inside it without problems. The point is that in this one I need to add a javascript…
-
1
votes1
answer52
viewsProblems with Javascript HTML function does not show content in the page source code
About the Javascript functions that add HTML content, these added contents are not being shown in the page’s source code, even if it works. Example: <html> <head> <script…
-
1
votes1
answer976
viewsHow to insert dynamic lines in HTML table, and already define a class ante-hand
I have an HTML table and I am creating your lines dynamically using appendChild(), I just can’t seem to define className dynamically on these lines, in the third column - "VALUE". See how this: var…
-
1
votes1
answer69
viewsJquery - Add element to each certain amount of other elements
I need to add a tag breaking (<br> or <hr>) each quantity of <div> dynamically arising. For PHP, i group 10 records by <div>, that is, every 10 records creates a <div>…
-
1
votes2
answers85
viewshtml page does not interpret css class inserted on button at runtime
I wrote the following code: $(document).ready(function() { $(".addAssunto").click(function() { var tr = '<tr>' + '<td>' + '<input type="text" class="form-control no-border"…
-
0
votes1
answer629
viewsinput inserted with "append" is not "recognized"
I’m trying to make a slightly more dynamic form! But when adding new inputs with the append javascript, the same is not recognized. And the effect is not realized. The effect in question is the…
-
0
votes1
answer170
viewsAdd information to a. json file
You can add information with a different reference to a json file with php? Type: file json. { 'id': 'rt6hj7'{ 'nome':'Miguel' }, 'id': 'rt10hg9'{ 'nome':'Sagas' } } And add Jose with id: 8dhus8763…
-
0
votes1
answer26
viewsDelete the last number I typed
Friends, one more question ( ). Observe the following Code: Numero = int(input('Digite um Numero')) inteiro = [] inteiro.append(Numero) while Numero>0: Numero = int(input('Digite um Numero'))…
-
0
votes2
answers142
viewsHow to add two li in a 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 is written: "Add here". Does anyone know how to do this…
-
0
votes0
answers19
viewsLoop to search Twitter for various elements of a list using tweepy
I am using tweepy to return 20 tweets from each user in INF_LIST. I’m trying to do this by way of a loop so that it covers all users. However, it seems that the program returns only the last user’s…
-
0
votes1
answer38
viewsI have a question about how I can add each item of 2 lists and play the results of the sum to a third in python
I have the following program #Faça um programa que percorra duas listas e gere uma terceira sem elementos repetidos. x = [] y = [] z = [] while True: n = int(input("digite um número(0 sai): ")) if n…
-
0
votes1
answer248
viewsList empty after python loop
Hello, I have the following code that does this: It will traverse a vector that has a certain set of elements (residuo) with the same ID ([1][1][1][2][2] for example) and then store all elements of…
-
0
votes1
answer88
viewsJquery, append vanishing
good afternoon! My Jquery is adding the results obtained via ajax and they are disappearing. What might be happening? And how to solve? Thank you var _urlSearchInput; var _urlSearch;…
-
0
votes1
answer115
viewspython - Print, by line, the letter and nickname append()
Based on the following list:: escritores = [['Pedro', 'Tamen'], ['Almeida', 'Garrett'], ['Camilo', 'Pessanha'], ['Almada', 'Negreiros'], ['Ibn', 'Bassam'], ['Antonio', 'Aleixo'], ['Ricardo',…
-
0
votes1
answer146
viewsCreate div with append and delete to display another using Jquery
I need to display error validation messages in a form. These messages come from a json when I submit the form. Only that a field can have 2 or more msgs, for example: A Cpf may have error messages…
-
0
votes1
answer132
viewsError with append with python csv file
I have a code that sends information to a csv. When it runs the first time it writes the file normally, but when it runs the second time it should add a new line in the file it ends up overwriting…
-
0
votes1
answer43
viewsLoop to append Googlesearch to multiple elements of a list
Hello, What’s up, little community? I am a beginner with Python and programming in general and I would like to ask a question. Briefly describing the problem: I am using Googlesearch to return the…
-
0
votes1
answer41
viewsProblems with append incremetando until the infinity in Python
I’m doing a program that scans 35 bits on a piece of equipment, storing reference bits in an array. The logic to know if any bit has changed since the last reading, always saves the previous result…
-
-1
votes1
answer61
viewsAdd HTML with Javascript and Remain
I want it to be possible to add and then when update the page it stays saved in my HTML. .menu { width: 100%; height: 70px; background-color: #56B8BD; max-height: 70px; } .menu ul li { float: left;…
-
-1
votes2
answers69
viewsIterations in a tuple list
Good afternoon, I have the following problem: I have a list of tuples called list_chromosomes, with 10 positions. I want to open a new position at the end of it (11th position), where it will…
-
-1
votes1
answer42
viewsConverting total hours of a month into days and hours
Hello! I am working on a data_set in which the time measure is in Total Hours Races of the month. Going from hour 1 to hour 734. I want to convert this measure of time into hours of the month per…
-
-2
votes2
answers45
viewsHow to show the error message of validating a data on the screen with append?
I am trying to sketch as in the image below the mistakes committed by erroneous data entry in the form. However, it only works when data is entered correctly. The javascript code is…
-
-2
votes1
answer76
viewsProgram problem that traverses two lists and generates a third without repeating elements
For a little over a week I’ve been trying to solve the following exercise: "Make a program that traverses two lists and generates a third without repeating elements." The statement in question is…
-
-3
votes3
answers65
viewsEternal and unique value
That’s not a problem, it’s a question, so I hope you can help me. I’m a beginner in python, and I’m learning about lists, and the teacher talks about unique, timeless elements. I wanted to know the…