[Solved] Delete HTML elements with JS. WORKING JSFIDDLE [duplicate]

Insert all your code inside a div(it’s easier this way), and use a delegated event handler: $(‘#addEnv’).click(function() { var parentDiv = $(‘<div/>’, { class : ‘parentDiv’, html : ‘<div class=”col-sm-5 top10″><div class=”input-group”><label class=”input-group-addon”>Name</label><input id=”envName” class=”form-control” name=”envName” type=”text” placeholder=”e.g. name1″ /></div></div>’ + ‘<div class=”col-sm-5 top10″><div class=”input-group”><label class=”input-group-addon”>Variable</label><input class=”form-control” id=”envVar” type=”text” name=”envVar” placeholder=”e.g. var1″ /></div></div><div class=”col-sm-2 top10″><button … Read more

[Solved] positioning section and div [closed]

You can simply use two div elements to divide your page to 70% and 30%. I have edited a bit of your CSS and it works: CSS: .sec { width:70%; float:left; background-color: red; margin-bottom: 3em; } .side { width:30%; float:left; background-color:Green; } HTML: <div id=”wrapper”> //your rest of HTML <div class=”sec”> <h1>Last news</h1> <article> <h1>News … Read more

[Solved] How is this specific design effect achieved? [closed]

CSS Triangles. CSS .arrow-down { width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 20px solid #f00; } HTML <div class=”arrow-down”></div> Resource More info can be found here 1 solved How is this specific design effect achieved? [closed]

[Solved] IF DIV color is red? [duplicate]

Yes can do this by using attribute change jquery plugin… As I can see you want an event to be triggered on color change automatically… So, your code will be something like this with its working example… $(“#myDiv”).attrchange({ trackValues: true, // set to true so that the event object is updated with old & new … Read more

[Solved] Float text around image

Here is a solution that works only if you have fixed height divs (here .product) : jsFiddle Demo You will have to put your .pricetag div before the text. Then, the main trick is to use a spacer floated right with a width of 0 : HTML : <div class=”product”> <div class=”pricetagspacer”></div> <div class=”pricetag”> 999 … Read more