Discussion:
Why this code don't work
(too old to reply)
ReynierPM
2009-11-03 03:14:13 UTC
Permalink
Hi every:
I need to add some fields when a user clic a link. For this purpose I
build this piece of code:

[jQuery/JS Code]
$('#another').click(function(){
$('#word').append('<label for="word2"></label><input type="text"
name="word2" id="word2" value="" size="50" />');
});

[HTML Code]
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" /> <a
href="#" id="another">Adicionar criterio</a>

But for some reason when I click the link it doesn't work. Can any help
me to fix this?
--
Cheers
ReynierPM
Dhruva Sagar
2009-11-03 03:20:25 UTC
Permalink
You should be doing $('#word').after('<label for="word2"></label><input
type="text" name="word2" id="word2" value="" size="50" />');

append() would add your HTML code as a child of that input, hence you will
not get the desired results.

Thanks & Regards,
Dhruva Sagar.


Pablo Picasso<http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html>
- "Computers are useless. They can only give you answers."
I need to add some fields when a user clic a link. For this purpose I build
[jQuery/JS Code]
$('#another').click(function(){
$('#word').append('<label for="word2"></label><input type="text"
name="word2" id="word2" value="" size="50" />');
});
[HTML Code]
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" /> <a href="#"
id="another">Adicionar criterio</a>
But for some reason when I click the link it doesn't work. Can any help me
to fix this?
--
Cheers
ReynierPM
ReynierPM
2009-11-03 03:23:47 UTC
Permalink
Post by Dhruva Sagar
You should be doing $('#word').after('<label for="word2"></label><input
type="text" name="word2" id="word2" value="" size="50" />');
This doesn't work too. I try and get none HTML input added after
input#word. Why?
--
Saludos
ReynierPM
Dhruva Sagar
2009-11-03 03:33:39 UTC
Permalink
Where have you added the $('#another').click() ?
Is it even in $(document).ready() or not ? Are you sure that the click
handler is even being called ?

I have created a test.html and tested what you want, it works perfectly for
me.

<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.pack.js"
type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[
$(document).ready(function() {
$('#another').click(function() {
$('#word').after('<label for="word2"></label><input
type="text" name="word2" id="word2" value="" size="50" />');
});
});
// ]]>
</script>
</head>
<body>
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<a href="#" id="another">Adicionar criterio</a>
</body>
</html>

Thanks & Regards,
Dhruva Sagar.


Jonathan Swift<http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html>
- "May you live every day of your life."
Post by ReynierPM
Post by Dhruva Sagar
You should be doing $('#word').after('<label for="word2"></label><input
type="text" name="word2" id="word2" value="" size="50" />');
This doesn't work too. I try and get none HTML input added after
input#word. Why?
--
Saludos
ReynierPM
ReynierPM
2009-11-03 03:38:41 UTC
Permalink
Post by Dhruva Sagar
Where have you added the $('#another').click() ?
Is it even in $(document).ready() or not ? Are you sure that the click
handler is even being called ?
I have created a test.html and tested what you want, it works perfectly for
me.
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.pack.js"
type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[
$(document).ready(function() {
$('#another').click(function() {
$('#word').after('<label for="word2"></label><input
type="text" name="word2" id="word2" value="" size="50" />');
});
});
// ]]>
</script>
</head>
<body>
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<a href="#" id="another">Adicionar criterio</a>
</body>
</html>
Thanks & Regards,
Dhruva Sagar.
Ohh I see my mistake now I forget to write this code inside $().ready()
for that it wont work. Now I have a second question: how I can generate
dinamically the number for element input id? I mean every time I click
the link the id will be incremented in one so will be: word1, word2, wordn
Thanks
--
Saludos
ReynierPM
Dhruva Sagar
2009-11-03 03:59:37 UTC
Permalink
Well I have made some changes to the test.html to achieve the desired
results :

<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.pack.js"
type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[
$(document).ready(function() {
$('#another').click(function() {
var id = "word" + $('input').length
$('input:last').after('<label for="' + id + '"></label><input
type="text" name="' + id + '" id="' + id + '" value="" size="50" />');
return false;
});
});
// ]]>
</script>
</head>
<body>
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<a href="" id="another">Adicionar criterio</a>
</body>
</html>

This will achieve what you want.
Thanks & Regards,
Dhruva Sagar.


Joan Crawford<http://www.brainyquote.com/quotes/authors/j/joan_crawford.html>
- "I, Joan Crawford, I believe in the dollar. Everything I earn, I
spend."
Post by Dhruva Sagar
Where have you added the $('#another').click() ?
Is it even in $(document).ready() or not ? Are you sure that the click
handler is even being called ?
I have created a test.html and tested what you want, it works perfectly for
me.
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.pack.js"
type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[
$(document).ready(function() {
$('#another').click(function() {
$('#word').after('<label for="word2"></label><input
type="text" name="word2" id="word2" value="" size="50" />');
});
});
// ]]>
</script>
</head>
<body>
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<a href="#" id="another">Adicionar criterio</a>
</body>
</html>
Thanks & Regards,
Dhruva Sagar.
Ohh I see my mistake now I forget to write this code inside $().ready() for
that it wont work. Now I have a second question: how I can generate
dinamically the number for element input id? I mean every time I click the
link the id will be incremented in one so will be: word1, word2, wordn
Thanks
--
Saludos
ReynierPM
ReynierPM
2009-11-03 04:17:03 UTC
Permalink
Post by Dhruva Sagar
Well I have made some changes to the test.html to achieve the desired
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.pack.js"
type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript" language="javascript" charset="utf-8">
// <![CDATA[
$(document).ready(function() {
$('#another').click(function() {
var id = "word" + $('input').length
$('input:last').after('<label for="' + id + '"></label><input
type="text" name="' + id + '" id="' + id + '" value="" size="50" />');
return false;
});
});
// ]]>
</script>
</head>
<body>
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<a href="" id="another">Adicionar criterio</a>
</body>
</html>
This will achieve what you want.
Thanks & Regards,
Dhruva Sagar.
Joan Crawford<http://www.brainyquote.com/quotes/authors/j/joan_crawford.html>
- "I, Joan Crawford, I believe in the dollar. Everything I earn, I
spend."
Thanks a lot, it works perfectly
--
Saludos
ReynierPM
ReynierPM
2009-11-04 03:01:38 UTC
Permalink
Hi Dhruva:
I'm trying to build a simple search form. Would be nice if the user can
add her/his own fields for make the search better. What I mean? If you
take only one input then the search will be limited to this only field
containing one or more words. By the contrary if the user could add some
fields and specify criteria like "&&" or "||" the search will be better.
For that purpose I made some changes to the code. See below:

<script type="text/javascript">
$().ready(function(){
$('#clicy').click(function(){
var id = "word" + $('input').length;
var hid = "hw" + $('input').length;
$('input:last').after('<br/><label for="'+id+'">&&</label><input
type="text" name="'+id + '" id="'+id + '" value="" size="30" /> <input
type="hidden" name="'+hid+'" id="'+hid+'" value="&&"/>');
return false;
});
$('#clico').click(function(){
var id = "word" + $('input').length;
var hid = "hw" + $('input').length;
$('input:last').after('<br/><label for="'+id+'">||</label><input
type="text" name="'+id + '" id="'+id + '" value="" size="30" /> <input
type="hidden" name="'+hid+'" id="'+hid+'" value="||"/>');
return false;
});
});
</script>

<form action="search/DoSearch" method="post">
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<div><input type="submit" value="Buscar !!!" /></div>
</form>
<a href="#" id="clicy">Adicionar criterio de búsqueda (&&)</a> | <a
href="#" id="clico">Adicionar criterio de búsqueda (||)</a>

As you notice here when I clic the link#clicy two fields are added: one
hidden with && as value and another with word+id as id with no value.
The same happen with the link#clico but the value of hidden field goes
to ||. This code works fine but two things happen here.

1) When you click for first time in a link (#clicy or #clico) the field
is added but I need add a hidden field just behind the input#word. How?

2) The fields are added just behind the SUBMIT button, how I can add
just between the first field and the submit button?

Cheers and thanks in advance
--
Saludos
ReynierPM
Dhruva Sagar
2009-11-04 03:16:18 UTC
Permalink
Hi ReynierPM,
*
*
*The following is the test.html i've written for you, i've tweaked it a bit
to get the right id's & also to solve the 2 problems you listed.*
*Try it and see if it does what you wish to do :*

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script src="http://code.jquery.com/jquery-latest.pack.js"
type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript">
//<![CDATA[
$().ready(function(){
$('#clicy').click(function(){
var id = "word" + $('input[type!=hidden]').length;
var hid = "hw" + $('input').length;
$('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'"
id="'+hid+'" value="&&"/><label for="'+id+'">&&</label><input type="text"
name="'+id + '" id="'+id + '" value="" size="30" /><br/>');
return false;
});
$('#clico').click(function(){
var id = "word" + $('input[type!=hidden]').length;
var hid = "hw" + $('input[type=hidden]').length;
$('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'"
id="'+hid+'" value="||"/><label for="'+id+'">||</label><input type="text"
name="'+id + '" id="'+id + '" value="" size="30" /><br/>');
return false;
});
});
//]]>
</script>
</head>
<body>
<form action="search/DoSearch" method="post">
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<div><input type="submit" value="Buscar !!!" /></div>
</form>
<a href="" id="clicy">Adicionar criterio de búsqueda (&&)</a> | <a href=""
id="clico">Adicionar criterio de búsqueda (||)</a>
</body>
</html>

*
*Thanks & Regards,
Dhruva Sagar.


Ted Turner <http://www.brainyquote.com/quotes/authors/t/ted_turner.html> -
"Sports is like a war without the killing."
I'm trying to build a simple search form. Would be nice if the user can add
her/his own fields for make the search better. What I mean? If you take only
one input then the search will be limited to this only field containing one
or more words. By the contrary if the user could add some fields and specify
criteria like "&&" or "||" the search will be better. For that purpose I
<script type="text/javascript">
$().ready(function(){
$('#clicy').click(function(){
var id = "word" + $('input').length;
var hid = "hw" + $('input').length;
$('input:last').after('<br/><label for="'+id+'">&&</label><input
type="text" name="'+id + '" id="'+id + '" value="" size="30" /> <input
type="hidden" name="'+hid+'" id="'+hid+'" value="&&"/>');
return false;
});
$('#clico').click(function(){
var id = "word" + $('input').length;
var hid = "hw" + $('input').length;
$('input:last').after('<br/><label for="'+id+'">||</label><input
type="text" name="'+id + '" id="'+id + '" value="" size="30" /> <input
type="hidden" name="'+hid+'" id="'+hid+'" value="||"/>');
return false;
});
});
</script>
<form action="search/DoSearch" method="post">
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<div><input type="submit" value="Buscar !!!" /></div>
</form>
<a href="#" id="clicy">Adicionar criterio de búsqueda (&&)</a> | <a
href="#" id="clico">Adicionar criterio de búsqueda (||)</a>
As you notice here when I clic the link#clicy two fields are added: one
hidden with && as value and another with word+id as id with no value. The
same happen with the link#clico but the value of hidden field goes to ||.
This code works fine but two things happen here.
1) When you click for first time in a link (#clicy or #clico) the field is
added but I need add a hidden field just behind the input#word. How?
2) The fields are added just behind the SUBMIT button, how I can add just
between the first field and the submit button?
Cheers and thanks in advance
--
Saludos
ReynierPM
Dhruva Sagar
2009-11-04 03:17:22 UTC
Permalink
A minor mistake in the previous mail, please take this into consideration
and neglect the previous mail :

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script src="http://code.jquery.com/jquery-latest.pack.js"
type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript">
//<![CDATA[
$().ready(function(){
$('#clicy').click(function(){
var id = "word" + $('input[type!=hidden]').length;
var hid = "hw" + $('input[type=hidden]').length;
$('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'"
id="'+hid+'" value="&&"/><label for="'+id+'">&&</label><input type="text"
name="'+id + '" id="'+id + '" value="" size="30" /><br/>');
return false;
});
$('#clico').click(function(){
var id = "word" + $('input[type!=hidden]').length;
var hid = "hw" + $('input[type=hidden]').length;
$('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'"
id="'+hid+'" value="||"/><label for="'+id+'">||</label><input type="text"
name="'+id + '" id="'+id + '" value="" size="30" /><br/>');
return false;
});
});
//]]>
</script>
</head>
<body>
<form action="search/DoSearch" method="post">
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<div><input type="submit" value="Buscar !!!" /></div>
</form>
<a href="" id="clicy">Adicionar criterio de búsqueda (&&)</a> | <a href=""
id="clico">Adicionar criterio de búsqueda (||)</a>
</body>
</html>


Thanks & Regards,
Dhruva Sagar.


Stephen Leacock<http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html>
- "I detest life-insurance agents: they always argue that I shall some
day
die, which is not so."
Post by Dhruva Sagar
Hi ReynierPM,
*
*
*The following is the test.html i've written for you, i've tweaked it a
bit to get the right id's & also to solve the 2 problems you listed.*
*Try it and see if it does what you wish to do :*
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script src="http://code.jquery.com/jquery-latest.pack.js"
type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript">
//<![CDATA[
$().ready(function(){
$('#clicy').click(function(){
var id = "word" + $('input[type!=hidden]').length;
var hid = "hw" + $('input').length;
$('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'"
id="'+hid+'" value="&&"/><label for="'+id+'">&&</label><input type="text"
name="'+id + '" id="'+id + '" value="" size="30" /><br/>');
return false;
});
$('#clico').click(function(){
var id = "word" + $('input[type!=hidden]').length;
var hid = "hw" + $('input[type=hidden]').length;
$('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'"
id="'+hid+'" value="||"/><label for="'+id+'">||</label><input type="text"
name="'+id + '" id="'+id + '" value="" size="30" /><br/>');
return false;
});
});
//]]>
</script>
</head>
<body>
<form action="search/DoSearch" method="post">
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<div><input type="submit" value="Buscar !!!" /></div>
</form>
<a href="" id="clicy">Adicionar criterio de búsqueda (&&)</a> | <a
href="" id="clico">Adicionar criterio de búsqueda (||)</a>
</body>
</html>
*
*Thanks & Regards,
Dhruva Sagar.
Ted Turner <http://www.brainyquote.com/quotes/authors/t/ted_turner.html> - "Sports is like a war without the killing."
Post by ReynierPM
I'm trying to build a simple search form. Would be nice if the user can
add her/his own fields for make the search better. What I mean? If you take
only one input then the search will be limited to this only field containing
one or more words. By the contrary if the user could add some fields and
specify criteria like "&&" or "||" the search will be better. For that
<script type="text/javascript">
$().ready(function(){
$('#clicy').click(function(){
var id = "word" + $('input').length;
var hid = "hw" + $('input').length;
$('input:last').after('<br/><label for="'+id+'">&&</label><input
type="text" name="'+id + '" id="'+id + '" value="" size="30" /> <input
type="hidden" name="'+hid+'" id="'+hid+'" value="&&"/>');
return false;
});
$('#clico').click(function(){
var id = "word" + $('input').length;
var hid = "hw" + $('input').length;
$('input:last').after('<br/><label for="'+id+'">||</label><input
type="text" name="'+id + '" id="'+id + '" value="" size="30" /> <input
type="hidden" name="'+hid+'" id="'+hid+'" value="||"/>');
return false;
});
});
</script>
<form action="search/DoSearch" method="post">
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<div><input type="submit" value="Buscar !!!" /></div>
</form>
<a href="#" id="clicy">Adicionar criterio de búsqueda (&&)</a> | <a
href="#" id="clico">Adicionar criterio de búsqueda (||)</a>
As you notice here when I clic the link#clicy two fields are added: one
hidden with && as value and another with word+id as id with no value. The
same happen with the link#clico but the value of hidden field goes to ||.
This code works fine but two things happen here.
1) When you click for first time in a link (#clicy or #clico) the field is
added but I need add a hidden field just behind the input#word. How?
2) The fields are added just behind the SUBMIT button, how I can add just
between the first field and the submit button?
Cheers and thanks in advance
--
Saludos
ReynierPM
ReynierPM
2009-11-04 03:39:20 UTC
Permalink
Post by Dhruva Sagar
A minor mistake in the previous mail, please take this into consideration
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script src="http://code.jquery.com/jquery-latest.pack.js"
type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript">
//<![CDATA[
$().ready(function(){
$('#clicy').click(function(){
var id = "word" + $('input[type!=hidden]').length;
var hid = "hw" + $('input[type=hidden]').length;
$('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'"
id="'+hid+'" value="&&"/><label for="'+id+'">&&</label><input type="text"
name="'+id + '" id="'+id + '" value="" size="30" /><br/>');
return false;
});
$('#clico').click(function(){
var id = "word" + $('input[type!=hidden]').length;
var hid = "hw" + $('input[type=hidden]').length;
$('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'"
id="'+hid+'" value="||"/><label for="'+id+'">||</label><input type="text"
name="'+id + '" id="'+id + '" value="" size="30" /><br/>');
return false;
});
});
//]]>
</script>
</head>
<body>
<form action="search/DoSearch" method="post">
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<div><input type="submit" value="Buscar !!!" /></div>
</form>
<a href="" id="clicy">Adicionar criterio de búsqueda (&&)</a> | <a href=""
id="clico">Adicionar criterio de búsqueda (||)</a>
</body>
</html>
Thanks & Regards,
Dhruva Sagar.
Stephen Leacock<http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html>
- "I detest life-insurance agents: they always argue that I shall some
day
die, which is not so."
Thanks a lot, I made some improvements to your code because I'm using a
table now but it works perfectly.
--
Saludos
ReynierPM
Dhruva Sagar
2009-11-04 03:40:51 UTC
Permalink
Great :)

Thanks & Regards,
Dhruva Sagar.


Marie von Ebner-Eschenbach<http://www.brainyquote.com/quotes/authors/m/marie_von_ebnereschenbac.html>
- "Even a stopped clock is right twice a day."
Post by ReynierPM
Post by Dhruva Sagar
A minor mistake in the previous mail, please take this into consideration
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<script src="http://code.jquery.com/jquery-latest.pack.js"
type="text/javascript" language="javascript" charset="utf-8"></script>
<script type="text/javascript">
//<![CDATA[
$().ready(function(){
$('#clicy').click(function(){
var id = "word" + $('input[type!=hidden]').length;
var hid = "hw" + $('input[type=hidden]').length;
$('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'"
id="'+hid+'" value="&&"/><label for="'+id+'">&&</label><input type="text"
name="'+id + '" id="'+id + '" value="" size="30" /><br/>');
return false;
});
$('#clico').click(function(){
var id = "word" + $('input[type!=hidden]').length;
var hid = "hw" + $('input[type=hidden]').length;
$('input[type=submit]').before('<br/><input type="hidden" name="'+hid+'"
id="'+hid+'" value="||"/><label for="'+id+'">||</label><input type="text"
name="'+id + '" id="'+id + '" value="" size="30" /><br/>');
return false;
});
});
//]]>
</script>
</head>
<body>
<form action="search/DoSearch" method="post">
<label for="word">Texto:</label>
<input type="text" name="word" id="word" value="" size="50" />
<div><input type="submit" value="Buscar !!!" /></div>
</form>
<a href="" id="clicy">Adicionar criterio de búsqueda (&&)</a> | <a href=""
id="clico">Adicionar criterio de búsqueda (||)</a>
</body>
</html>
Thanks & Regards,
Dhruva Sagar.
Stephen Leacock<
http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html>
- "I detest life-insurance agents: they always argue that I shall some
day
die, which is not so."
Thanks a lot, I made some improvements to your code because I'm using a
table now but it works perfectly.
--
Saludos
ReynierPM
ReynierPM
2009-11-05 00:26:47 UTC
Permalink
Post by Dhruva Sagar
Great :)
Hi again Dhruva:
I have one more question regarding this topic. How I can delete all the
newest elements created using the previous jQuery functions? Exists one
method for all or I need to build a custom function and clic as many
times as new elements I added?
Cheers
--
Saludos
ReynierPM
Dhruva Sagar
2009-11-05 00:32:31 UTC
Permalink
Well I would suggest that you keep adding the generated id's of the inputs &
hidden inputs in an array.
Write a reset function which then loops through the array and selects them
using $() and call remove() for them to remove them from the DOM.

Other than that I don't think there is any way specifically that could allow
you to identify the inputs created from jquery uniquely.

Thanks & Regards,
Dhruva Sagar.
Post by ReynierPM
Post by Dhruva Sagar
Great :)
I have one more question regarding this topic. How I can delete all the
newest elements created using the previous jQuery functions? Exists one
method for all or I need to build a custom function and clic as many times
as new elements I added?
Cheers
--
Saludos
ReynierPM
Dhruva Sagar
2009-11-05 05:15:38 UTC
Permalink
Actually to think of it now, I see there is of course a much simpler easier
way to reset / remove all the newly added elements :).

In your javascript where you add the elements to the dom, you can assign
them a particular css class say 'newly_added' . Then in the reset function
you could simply select them and remove them in one single swift action ;).

function reset() {
$('.newly_added').remove();
}

Thanks & Regards,
Dhruva Sagar.
Post by ReynierPM
Post by Dhruva Sagar
Great :)
I have one more question regarding this topic. How I can delete all the
newest elements created using the previous jQuery functions? Exists one
method for all or I need to build a custom function and clic as many times
as new elements I added?
Cheers
--
Saludos
ReynierPM
Continue reading on narkive:
Loading...