HTML / CSS / WebDesign

This room is now defunct. RIP.
R K
May 11, 2019 05:08
anyone home?
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
R K
May 10, 2019 01:05
and when they turn around at u .. u give them excuses
R K
May 10, 2019 01:04
you first take out ur negative energy on others
R K
May 10, 2019 01:04
and end of story
R K
May 10, 2019 01:04
just say politely you're playing games with your children .. so i understand
R K
May 10, 2019 01:03
yes and guess who provoked it
R K
May 10, 2019 01:03
you don't have to be rude
R K
May 10, 2019 01:03
you must first learn how to say no to people
R K
May 10, 2019 01:02
whatever
R K
May 10, 2019 01:02
I wont pin you but that's rude
R K
May 10, 2019 01:01
are you outside the room?
R K
May 10, 2019 01:01
You're experienced .. maybe you can guide the best where to start or go
R K
May 10, 2019 01:00
@KevinB - How do accomplish rendering markup by the jQuery
R K
May 10, 2019 01:00
@KevinB - how do you suggest achieving that?
R K
May 10, 2019 00:58
<ul class="cart-dropdown">
        <li>
            <div class="cart-items cart-caption">
                <ul>
                    <li>
                        <div class="container-fluid item-wrap" style="position: relative">
                            <div class="item-remove">
                                x
                            </div>
                            <div class="col-md-2 item-img">
                                <div class="row-cart">
                                    <img alt="" id="cartImg" height="71" width="75" src="">
R K
May 10, 2019 00:58
My desired output is:
R K
May 10, 2019 00:57
This is why ...
R K
May 10, 2019 00:57
$(".cart-dropdown").append(
                                "<li><div><ul><li><div><div></div><div><div><img></div></div><div><div><div><a></a></div><div><a></a></div><div><p></p></div></div></div><div><div><div><div><span></span></div></div></div><div></div></li></ul></div></li >"
                            )
                            $("ul.cart-dropdown div").addClass("cart-items cart-caption");
                            $("div.cart-items ul li div").addClass("container-fluid item-wrap");
R K
May 10, 2019 00:51
<div class="cart-items cart-caption container-fluid item-wrap">
R K
May 10, 2019 00:51
Yes I see the following result in the live DOM:
R K
May 10, 2019 00:46
I recheck the script code on the page to confirm that @rle
R K
May 10, 2019 00:45
right
R K
May 10, 2019 00:44
ul li div ul li div = is repeated
R K
May 10, 2019 00:44
<ul class="cart-dropdown">
        <li>
            <div class="cart-items cart-caption">
                <ul>
                    <li>
                        <div class="container-fluid item-wrap" style="position: relative">
R K
May 10, 2019 00:41
<div class="navbar navbar-inverse navbar-fixed-top" id="tm">

@rlemon
R K
May 10, 2019 00:40
Parallel windows give me easier vision
R K
May 10, 2019 00:40
@StephanS - Too many windows .. I copy the markup to the notepad while jQuerying it.
R K
May 10, 2019 00:39
<ul class="cart-dropdown">
        <li>
            <div class="cart-items cart-caption">
R K
May 10, 2019 00:38
@rlemon - i know that .removeClass() will remove .. but I'm thinking why is it adding the ancestors in the first place
R K
May 10, 2019 00:35
what will
R K
May 10, 2019 00:35
right
R K
May 10, 2019 00:35
you're right .. but that's not what my issue is about
R K
May 10, 2019 00:35
oh this is from the notepad
R K
May 10, 2019 00:34
yeah? where? lol
R K
May 10, 2019 00:33
not the ancestors
R K
May 10, 2019 00:33
I only want those two extras to add
R K
May 10, 2019 00:32
    <div class="cart-items cart-caption">
        <ul>
            <li>
                <div class="cart-items cart-caption container-fluid item-wrap">
	    </li>
        </ul>
    </div>
R K
May 10, 2019 00:32
output:
R K
May 10, 2019 00:31
$("div.cart-items ul li div").addClass("container-fluid item-wrap");
R K
May 10, 2019 00:31
code:
R K
May 10, 2019 00:31
    <div class="cart-items cart-caption">
        <ul>
            <li>
                <div class="container-fluid item-wrap">
	    </li>
        </ul>
    </div>
R K
May 10, 2019 00:30
Desired output:
R K
May 8, 2019 20:21
you fixed it for me.. thank you.
R K
May 8, 2019 20:21
thanks alot for all the help bro .. u r a legend
R K
May 8, 2019 20:21
this is out of system ..
R K
May 8, 2019 20:20
ok..
R K
May 8, 2019 20:20
 public DbSet<Item> Items { get; set; }
 public DbSet<Category> Categories { get; set; }
 public DbSet<Brand> Brands { get; set; }
R K
May 8, 2019 20:20
actually we defined that ..
R K
May 8, 2019 20:19
that's conventional ..
R K
May 8, 2019 20:18
(last)