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?
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(); /...
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...
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.
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...
I have the following struct in my program:
+<vara>: struct[Vara] {
name = "Dados da Vara"
request = "Preencha os dados da vara"
fields {
+[numero] : Integer {...
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...
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...
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...
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...