V
V
Valentin Birulya2020-04-22 07:13:20
JavaScript
Valentin Birulya, 2020-04-22 07:13:20

How can I make the new div contain more div's (without using ID) (Jquery)?


When I click on the button, a div is created, but how can I make it so that when the button is pressed, a div is created in which there are 2 divs, and there are all sorts of divs in them. And when the operation is repeated, exactly the same set of divs would be created. (Is it possible to do this with help (this) and if so , how

?

Answer the question

In order to leave comments, you need to log in

16 answer(s)
V
Valentin Birulya, 2020-04-22
@nykakdelishki

Thanks everyone, here is the solution:

$(function () {
  $('#add-case').click(function(){
  $('#no-list').remove();
  $('#list-case').prepend('<div class="case"><div class="case-top"><div class="case-header">'
    + document.getElementById('name-case').value + 
    '<div class="img"><img src="img/delete.png"></div></div></div><div class="case-bottom">'
    + document.getElementById('description-text').value + '</div></div>');
  $('.img').click(function () {
    $(this).parent().parent().parent().remove();
    });
  });
});

A
Alexey, 2012-05-31
@Sterhel

Resistive screens are evil.
I don't know which one this particular Nokia has, but I had one phone with a resistive screen. No more.

R
Ruma7a, 2012-05-31
@Ruma7a

Is there a good twitter/book reader under his Nokia dialect of debian? In general, the N900 is a rather strange choice, IMHO, it is too marginal, and the nokla itself somehow abandoned it.

A
adminimus, 2012-05-31
@adminimus

I bought an xperia pro a month ago. The keyboard pleases, no screen crutches lay nearby. I took a large version (not mini) just because of a decent screen, it is very convenient to watch the Internet. I read a couple of novels from him, no complaints. An update with ICS is on the way.
Of the minuses - the case is made of glossy plastic, and not very thick. Although now they even make top-end shovels for a kilobucks from this :(

B
boolivar, 2012-05-31
@boolivar

To be honest, I'm dissatisfied with my Nokia n900 - money thrown away. Very buggy, I can’t say that the resistive screen is bad, rather the interface is retarded. The phone for me has only qwerty fm transmitter and usb-otg pluses.

V
Vagineer, 2012-05-31
@Vagineer

If you can still find it for sale.

E
egorinsk, 2012-05-31
@egorinsk

They say the iPhone is a good phone, albeit without a keyboard

N
nzim, 2012-05-31
@nzim

If a girl, then at least Nokia C3-00 Hot Pink . It all depends on personal (her) preferences and price. You can also Blackberry Bold 9900 or 9780 model, it's up to you to decide.
It is better to make the filter yourself in your preferred online store or product catalog for phones\smartphones with a QWERTY keyboard

N
nzim, 2012-05-31
@nzim

The last tip will not work if the girl has long nails and it will be easier for her to press with her nails)
They have their own jokes there)

S
sielover, 2012-05-31
@sielover

HTC Chacha - the girl really likes
2.6 "screen - except that it is a bit small
The keyboard is comfortable, of the minuses - it is impossible to enter a capital letter "Ж" :)

P
phasma, 2012-05-31
@phasma

Get BB. Exx is a very old series, it will be difficult to find applications for it. n900 will be BU, it served me for 2 years and now it's just falling apart. Mom has E65 now, but it's buggy.
In general, it is better to look at Motorola / Samsung from a bucket, iPhone, or Blackberry. 9900 is a very good thing, but it drains the battery very quickly.

A
Ambrose, 2012-05-31
@Ambrose

Or maybe try to look for a used HTC Desire Z? They were sold half a year ago, I think you can find them in good condition ...
Android, again, a lot of applications and the ability to sell if it doesn’t go higher than the N900.

S
slaum, 2012-06-01
@slaum

After E63, I recommend trying E6, a very interesting model in this segment : market.yandex.ru/model.xml?modelid=7163936&hid=91491 both form factor like the E63 plus touch screen. For an online book, Twitter is quite suitable for the second one.

O
olean, 2012-06-01
@olean

Take the first one that comes along. This will save you time that you would have spent on choosing a phone and will allow you to spend more time on development / study / life ;) A
phone is just a phone.

E
Edward, 2012-06-05
@BIanF

I advise you to look towards BlackBerry. They are now going to Russia.
Prestigious, inexpensive, comfortable, original.

I
impass, 2012-06-05
@impass

Motorola Droid 4
big screen, keyboard, LTE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question