Questions tagged as 'javascript'

3
answers

help with various DIV and creation

My code is the following and works perfectly, besides that there is more div, but I want to add a button that is called "Add new room" and when I press it I want to create another one in the body similar to the code What is present Is it possibl...
asked by 15.07.2018 / 23:13
2
answers

html table with Json

I have a table defined in html, and I wanted to fill it with a JSON but since I'm new to javascript I can not pass the data correctly here is my table <table id="ctabco_tb" class="ctabco_tb tb_ctrl" > <thead>...
asked by 22.06.2018 / 18:22
2
answers

Variable return with p in javascript

I have a code that does a checking of the password and if it is short, print the corresponding. My problem is that I have the variable return and I need this to print a text wrapped in <p>...</p> , but I do not know how to do i...
asked by 20.06.2018 / 11:44
1
answer

Access other properties of the same object

I have an object where I save data to build a view and I want to know if there is any way to access other properties of that object from another property in the same object I tried this but it does not work var obj = { tem...
asked by 20.09.2018 / 04:50
1
answer

# in input automatically and css to give it blue color

Good friends, I have a form which I want to send by email using phpmailer, and that part is running, the one that has come up is that I want to add to the words that I enclose by writing in the "tags" a prefix # if I write juan that the same...
asked by 28.06.2018 / 17:40
1
answer

Redirect to another page and place you in an exact place on the other page [closed]

I need help I have a question page, but there are different blocks of questions, and on another page I have all the answers to those questions. My intention is that when I select a block of questions when I go to the other page, I also place...
asked by 29.06.2018 / 22:35
1
answer

traverse JSON objects and identify them

I have a JSON that brings me several objects as I could go through them and identify them in order to work with each of them separately or bring any of the elements that make it up. Sincerely, I have always complicated this of working with objec...
asked by 08.06.2018 / 22:57
1
answer

sort json data in javascript

I want to sort the data of a JSON that I obtain from an API, to group the Post by user, that is, userId = 1 to obtain all its post, the information that it gives me is the publications made by the users with id, title, its body and the userID, I...
asked by 18.08.2018 / 04:58
2
answers

Get the id of an HTML table, using a loop

I have a div, in which I will create an indeterminate number of tables which will have a non-numeric id, once these tables have been created I would like to go through them one by one and get their id as I will use it for later processes. Is...
asked by 23.06.2018 / 21:52
2
answers

Create table in JQuery HTML

I have a question, I have a function in JavaScript to generate tables, in the following way: function AgregarTabla(idContenedor, idTabla) { var htmlTabla; htmlTabla= "<table id = '" + idTabla +...
asked by 26.06.2018 / 04:08