How can I get the index number of every element using jQuery
I am using jquery sortable to sort some elements but now I want to be able to order them and save the order to the database.
So I figured the best way to do this is get the index of the element.
This is my html (it's dynamic so there can be infinite categories and questions):
<form id="lijstform">
<div class="row">
<div class="col-md-8">
<label class="lijstnaamtitle">Lijst naam</label>
<input class="form-control name_list catinput lijsttitle" type="text" name="lijsttitle">
</div>
</div>
<div id="dynamic_field" class="ui-sortable">
<div class="row sortwrap ui-sortable-handle" id="1">
<div class="col-md-8">
<input type="text" name="category" placeholder="1. Voeg een categorie toe" class="form-control name_list catinput">
<i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput">
</div>
<div class="col-md-4">
</div>
</div>
</div>
</div>
<div class="col-md-4">
</div>
</div>
<div class="row sortwrap ui-sortable-handle" id="2">
<div class="col-md-8">
<input type="text" name="category" placeholder="2. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
<div class="row sortwrap" id="3">
<div class="col-md-8">
<input type="text" name="category" placeholder="3. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
<div class="row sortwrap" id="4">
<div class="col-md-8">
<input type="text" name="category" placeholder="4. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
</div>
</form>
I already have code which adds a number to the placeholder of the input fields.
function updatePlaceholders()
$('#input-field-id').val($('#input-field-id').val() + 'more text');
// Sortable code
let df = $('#dynamic_field');
df.find('input[name^=cat]').each(function(i)
$(this).attr("placeholder", i + 1 + ". Voeg een categorie toe");
);
df.find('.sortwrap').each(function(i)
$(this).attr("id", i + 1);
);
df.find('.catinput').each(function(i)
var index = $(this).index();
$(this).val(i + 1 + '.' + ' '+index);
);
df.find('.questionlist').each(function()
$(this).find('input[name^=qu]').each(function(i)
$(this).attr("placeholder", i + 1 + ". Voeg een vraag toe");
);
);
Every add or delete I call the function again to update the numbers:
$('#dynamic_field').on('click', '.btn_remove', function()
$(this).closest('.row').remove();
updatePlaceholders();
);
$('#addcategory').on('click', function()
let t = $(template)
$('#dynamic_field').append(t);
updatePlaceholders();
);
This is what I tried to get the indexes:
df.find('.catinput').each(function(i)
var index = $(this).index();
$(this).val(i + 1 + '.' + ' '+index);
);
But this shows all indexes as being 0, even after adding new input fields. How can I get it to work?
javascript jquery
add a comment |
I am using jquery sortable to sort some elements but now I want to be able to order them and save the order to the database.
So I figured the best way to do this is get the index of the element.
This is my html (it's dynamic so there can be infinite categories and questions):
<form id="lijstform">
<div class="row">
<div class="col-md-8">
<label class="lijstnaamtitle">Lijst naam</label>
<input class="form-control name_list catinput lijsttitle" type="text" name="lijsttitle">
</div>
</div>
<div id="dynamic_field" class="ui-sortable">
<div class="row sortwrap ui-sortable-handle" id="1">
<div class="col-md-8">
<input type="text" name="category" placeholder="1. Voeg een categorie toe" class="form-control name_list catinput">
<i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput">
</div>
<div class="col-md-4">
</div>
</div>
</div>
</div>
<div class="col-md-4">
</div>
</div>
<div class="row sortwrap ui-sortable-handle" id="2">
<div class="col-md-8">
<input type="text" name="category" placeholder="2. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
<div class="row sortwrap" id="3">
<div class="col-md-8">
<input type="text" name="category" placeholder="3. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
<div class="row sortwrap" id="4">
<div class="col-md-8">
<input type="text" name="category" placeholder="4. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
</div>
</form>
I already have code which adds a number to the placeholder of the input fields.
function updatePlaceholders()
$('#input-field-id').val($('#input-field-id').val() + 'more text');
// Sortable code
let df = $('#dynamic_field');
df.find('input[name^=cat]').each(function(i)
$(this).attr("placeholder", i + 1 + ". Voeg een categorie toe");
);
df.find('.sortwrap').each(function(i)
$(this).attr("id", i + 1);
);
df.find('.catinput').each(function(i)
var index = $(this).index();
$(this).val(i + 1 + '.' + ' '+index);
);
df.find('.questionlist').each(function()
$(this).find('input[name^=qu]').each(function(i)
$(this).attr("placeholder", i + 1 + ". Voeg een vraag toe");
);
);
Every add or delete I call the function again to update the numbers:
$('#dynamic_field').on('click', '.btn_remove', function()
$(this).closest('.row').remove();
updatePlaceholders();
);
$('#addcategory').on('click', function()
let t = $(template)
$('#dynamic_field').append(t);
updatePlaceholders();
);
This is what I tried to get the indexes:
df.find('.catinput').each(function(i)
var index = $(this).index();
$(this).val(i + 1 + '.' + ' '+index);
);
But this shows all indexes as being 0, even after adding new input fields. How can I get it to work?
javascript jquery
why not use thei
?
– Mihai T
Nov 15 '18 at 11:42
add a comment |
I am using jquery sortable to sort some elements but now I want to be able to order them and save the order to the database.
So I figured the best way to do this is get the index of the element.
This is my html (it's dynamic so there can be infinite categories and questions):
<form id="lijstform">
<div class="row">
<div class="col-md-8">
<label class="lijstnaamtitle">Lijst naam</label>
<input class="form-control name_list catinput lijsttitle" type="text" name="lijsttitle">
</div>
</div>
<div id="dynamic_field" class="ui-sortable">
<div class="row sortwrap ui-sortable-handle" id="1">
<div class="col-md-8">
<input type="text" name="category" placeholder="1. Voeg een categorie toe" class="form-control name_list catinput">
<i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput">
</div>
<div class="col-md-4">
</div>
</div>
</div>
</div>
<div class="col-md-4">
</div>
</div>
<div class="row sortwrap ui-sortable-handle" id="2">
<div class="col-md-8">
<input type="text" name="category" placeholder="2. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
<div class="row sortwrap" id="3">
<div class="col-md-8">
<input type="text" name="category" placeholder="3. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
<div class="row sortwrap" id="4">
<div class="col-md-8">
<input type="text" name="category" placeholder="4. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
</div>
</form>
I already have code which adds a number to the placeholder of the input fields.
function updatePlaceholders()
$('#input-field-id').val($('#input-field-id').val() + 'more text');
// Sortable code
let df = $('#dynamic_field');
df.find('input[name^=cat]').each(function(i)
$(this).attr("placeholder", i + 1 + ". Voeg een categorie toe");
);
df.find('.sortwrap').each(function(i)
$(this).attr("id", i + 1);
);
df.find('.catinput').each(function(i)
var index = $(this).index();
$(this).val(i + 1 + '.' + ' '+index);
);
df.find('.questionlist').each(function()
$(this).find('input[name^=qu]').each(function(i)
$(this).attr("placeholder", i + 1 + ". Voeg een vraag toe");
);
);
Every add or delete I call the function again to update the numbers:
$('#dynamic_field').on('click', '.btn_remove', function()
$(this).closest('.row').remove();
updatePlaceholders();
);
$('#addcategory').on('click', function()
let t = $(template)
$('#dynamic_field').append(t);
updatePlaceholders();
);
This is what I tried to get the indexes:
df.find('.catinput').each(function(i)
var index = $(this).index();
$(this).val(i + 1 + '.' + ' '+index);
);
But this shows all indexes as being 0, even after adding new input fields. How can I get it to work?
javascript jquery
I am using jquery sortable to sort some elements but now I want to be able to order them and save the order to the database.
So I figured the best way to do this is get the index of the element.
This is my html (it's dynamic so there can be infinite categories and questions):
<form id="lijstform">
<div class="row">
<div class="col-md-8">
<label class="lijstnaamtitle">Lijst naam</label>
<input class="form-control name_list catinput lijsttitle" type="text" name="lijsttitle">
</div>
</div>
<div id="dynamic_field" class="ui-sortable">
<div class="row sortwrap ui-sortable-handle" id="1">
<div class="col-md-8">
<input type="text" name="category" placeholder="1. Voeg een categorie toe" class="form-control name_list catinput">
<i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput">
</div>
<div class="col-md-4">
</div>
</div>
</div>
</div>
<div class="col-md-4">
</div>
</div>
<div class="row sortwrap ui-sortable-handle" id="2">
<div class="col-md-8">
<input type="text" name="category" placeholder="2. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
<div class="row sortwrap" id="3">
<div class="col-md-8">
<input type="text" name="category" placeholder="3. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
<div class="row sortwrap" id="4">
<div class="col-md-8">
<input type="text" name="category" placeholder="4. Voeg een categorie toe" class="form-control name_list catinput"> <i class="mdi mdi-sort dragndrop"></i>
<div class="questionlist questionwrap">
<div class="row">
<div class="col-md-8">
<button class="btn btn-success questionbutton">Extra vraag</button>
<input type="text" name="question" placeholder="1. Voeg een vraag toe" class="form-control name_list questioninput"> </div>
<div class="col-md-4"> </div>
</div>
</div>
</div>
<div class="col-md-4">
<button id="addcategory" class="btn btn-danger btn_remove removebutton">X</button>
</div>
</div>
</div>
</form>
I already have code which adds a number to the placeholder of the input fields.
function updatePlaceholders()
$('#input-field-id').val($('#input-field-id').val() + 'more text');
// Sortable code
let df = $('#dynamic_field');
df.find('input[name^=cat]').each(function(i)
$(this).attr("placeholder", i + 1 + ". Voeg een categorie toe");
);
df.find('.sortwrap').each(function(i)
$(this).attr("id", i + 1);
);
df.find('.catinput').each(function(i)
var index = $(this).index();
$(this).val(i + 1 + '.' + ' '+index);
);
df.find('.questionlist').each(function()
$(this).find('input[name^=qu]').each(function(i)
$(this).attr("placeholder", i + 1 + ". Voeg een vraag toe");
);
);
Every add or delete I call the function again to update the numbers:
$('#dynamic_field').on('click', '.btn_remove', function()
$(this).closest('.row').remove();
updatePlaceholders();
);
$('#addcategory').on('click', function()
let t = $(template)
$('#dynamic_field').append(t);
updatePlaceholders();
);
This is what I tried to get the indexes:
df.find('.catinput').each(function(i)
var index = $(this).index();
$(this).val(i + 1 + '.' + ' '+index);
);
But this shows all indexes as being 0, even after adding new input fields. How can I get it to work?
javascript jquery
javascript jquery
asked Nov 15 '18 at 11:12
twantwan
97721437
97721437
why not use thei
?
– Mihai T
Nov 15 '18 at 11:42
add a comment |
why not use thei
?
– Mihai T
Nov 15 '18 at 11:42
why not use the
i
?– Mihai T
Nov 15 '18 at 11:42
why not use the
i
?– Mihai T
Nov 15 '18 at 11:42
add a comment |
1 Answer
1
active
oldest
votes
From the jQuery docs, it says:
If no argument is passed to the .index() method, the return value is an integer indicating the position of the first element within the jQuery object relative to its sibling elements.
Each of your catinput
classes are in a different div so they are not siblings. That's why .index()
is returning 0
for each.
If you want the index of that element within your collection, why don't you just use the i
parameter that you have already defined? Since the first parameter of the .each()
callback is the index of that element (docs).
i.e.
df.find('.catinput').each(function(i)
var index = i;
//rest of logic
);
I can do that but when adding a new inputfield the sort order is reset and show everything in ascending order instead of the order that I sorted it in before adding a new field.
– twan
Dec 12 '18 at 14:54
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53318192%2fhow-can-i-get-the-index-number-of-every-element-using-jquery%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
From the jQuery docs, it says:
If no argument is passed to the .index() method, the return value is an integer indicating the position of the first element within the jQuery object relative to its sibling elements.
Each of your catinput
classes are in a different div so they are not siblings. That's why .index()
is returning 0
for each.
If you want the index of that element within your collection, why don't you just use the i
parameter that you have already defined? Since the first parameter of the .each()
callback is the index of that element (docs).
i.e.
df.find('.catinput').each(function(i)
var index = i;
//rest of logic
);
I can do that but when adding a new inputfield the sort order is reset and show everything in ascending order instead of the order that I sorted it in before adding a new field.
– twan
Dec 12 '18 at 14:54
add a comment |
From the jQuery docs, it says:
If no argument is passed to the .index() method, the return value is an integer indicating the position of the first element within the jQuery object relative to its sibling elements.
Each of your catinput
classes are in a different div so they are not siblings. That's why .index()
is returning 0
for each.
If you want the index of that element within your collection, why don't you just use the i
parameter that you have already defined? Since the first parameter of the .each()
callback is the index of that element (docs).
i.e.
df.find('.catinput').each(function(i)
var index = i;
//rest of logic
);
I can do that but when adding a new inputfield the sort order is reset and show everything in ascending order instead of the order that I sorted it in before adding a new field.
– twan
Dec 12 '18 at 14:54
add a comment |
From the jQuery docs, it says:
If no argument is passed to the .index() method, the return value is an integer indicating the position of the first element within the jQuery object relative to its sibling elements.
Each of your catinput
classes are in a different div so they are not siblings. That's why .index()
is returning 0
for each.
If you want the index of that element within your collection, why don't you just use the i
parameter that you have already defined? Since the first parameter of the .each()
callback is the index of that element (docs).
i.e.
df.find('.catinput').each(function(i)
var index = i;
//rest of logic
);
From the jQuery docs, it says:
If no argument is passed to the .index() method, the return value is an integer indicating the position of the first element within the jQuery object relative to its sibling elements.
Each of your catinput
classes are in a different div so they are not siblings. That's why .index()
is returning 0
for each.
If you want the index of that element within your collection, why don't you just use the i
parameter that you have already defined? Since the first parameter of the .each()
callback is the index of that element (docs).
i.e.
df.find('.catinput').each(function(i)
var index = i;
//rest of logic
);
answered Nov 15 '18 at 11:40
Sam WalpoleSam Walpole
1038
1038
I can do that but when adding a new inputfield the sort order is reset and show everything in ascending order instead of the order that I sorted it in before adding a new field.
– twan
Dec 12 '18 at 14:54
add a comment |
I can do that but when adding a new inputfield the sort order is reset and show everything in ascending order instead of the order that I sorted it in before adding a new field.
– twan
Dec 12 '18 at 14:54
I can do that but when adding a new inputfield the sort order is reset and show everything in ascending order instead of the order that I sorted it in before adding a new field.
– twan
Dec 12 '18 at 14:54
I can do that but when adding a new inputfield the sort order is reset and show everything in ascending order instead of the order that I sorted it in before adding a new field.
– twan
Dec 12 '18 at 14:54
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53318192%2fhow-can-i-get-the-index-number-of-every-element-using-jquery%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
why not use the
i
?– Mihai T
Nov 15 '18 at 11:42