Questions tagged as 'id'

3
answers

Is it a bad practice to put numbers as id in HTML elements? If so, why?

I have a loop printing HTML elements, for example: for($i = 0; $i < 3; $i++){ echo "<div id='$i'>$i</div>"; } Is it a bad practice to put numbers as id in HTML elements? If so, why?     
asked by 08.11.2017 / 12:31
2
answers

How to return the page with the anchor of the LARAVEL id?

After submitting the form I return to the page in question with two methods, redirect() and back() . In case I'm using the bootstrap tabs and would like to get back with the anchor of the id, eg: return redirect()->back(); /...
asked by 21.06.2016 / 22:42
0
answers

How to get 'unique identifier' from the browser

In my searches I have already found the Object - navigator , to get the pertinent information to the user 's browser. However, I did not find anything satisfactory in this navigator that I can use to join to generate a unique identifier of...
asked by 06.02.2017 / 16:47
2
answers

how does auto increment work in mysql?

I want to know how to add a column so that it is a primary key and auto-increment, but that the value is higher, eg:    ID: 3509. and not just 1,2,3,4 ... etc.     
asked by 01.11.2017 / 19:20
4
answers

How to check for an ID in a document via JQuery?

I am programming the system of my TCC and in it I am creating a site that contains two types of ID in the container container of each page: fundo_index in Index and fundo_base in other pages. I need to do a check to know which o...
asked by 08.11.2016 / 19:32
2
answers

Lawtex - Change the default print of a struct

I have the following struct in my program: +<vara>: struct[Vara] { name = "Dados da Vara" request = "Preencha os dados da vara" fields { +[numero] : Integer {...
asked by 06.12.2018 / 17:03
2
answers

Get any variable of an array that has a certain id in AngularJS

With the following code, I am saying that in the second array contained in the object $scope.listademercadoria there is the property "quantity", and I am declaring it as value 0. $scope.listademercadoria[1].quantidade = 0; Is there a...
asked by 12.10.2017 / 06:43
3
answers

Define multiple "ids" in an HTML tag [duplicate]

HTML allows you to define several class in a single loop. Curiously, I tried to do the same, trying to define several id in a tag : <div id="id1 id2 id3">Tester plusieurs id</div> I...
asked by 25.04.2017 / 14:28
2
answers

How to add css to all elements whose id contains "..."?

I have several elements whose id contain, for example "elem", can be "% elem" or "elem%", can have characters before the String elem as before or before and then ("% elem%"). And I would like to add all the elements that css with jQuery. How ca...
asked by 21.02.2018 / 11:54
2
answers

Receive POST ID and play to Location via GET

I'm looking forward to getting the ID of the entity that just registered. Only it will be played to another screen, to be registered other information. I wonder how I can get the entity ID when saving the form. This is HTML <form act...
asked by 24.12.2017 / 21:56