[Solved] Javascript script stopped working and i can’t figure out why? [closed]

Just in order to help you… Add jQuery to used Frameworks & Extensions on the left, and fix multiple syntax errors. I strongly recommend you to use proper code formatting and debugging tool (e.g. Chrome Development Tools or Firebug). DEMO: jsfiddle.net/qA8Ur/1/ 2 solved Javascript script stopped working and i can’t figure out why? [closed]

[Solved] How to remove spaces using JavaScript? [duplicate]

You can use replace to replace spaces with nothing. var inputBox = document.getElementById(‘chatinput’); inputBox.onkeyup = function() { document.getElementById(‘printchatbox’).innerHTML = inputBox.value.replace(‘ ‘, ”); } <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script> <div class=”form-group”> <label>Title Page</label> <input type=”text” id=”chatinput” class=”form-control” required=””> </div> <div class=”form-group”> <div><b>Permalink: </b>http://doamin.com/<span id=”printchatbox” class=”cl-blue”></span></div> </div> NOTE: Upon seeing a suggested edit, I must remark that this is NOT … Read more

[Solved] How to choose right name for 2 same classes? [closed]

You can refer to any HTML attribute to select individual elements: input.zu-input-text[name=”name”] { /* CSS for “Name” text input */ } input.zu-input-text[name=”email”] { /* CSS for “E-Mail” text input */ } Theoretically, you could do that with placeholder property too. solved How to choose right name for 2 same classes? [closed]

[Solved] Can this design be made with just CSS? [closed]

The way you do this is using SVG filters: SVG goo on Codepen Also you may like to read this The Gooey Effect The most important is defining a goo filter. Next you draw several circles (border-radius:50%;) and you apply the svg filter. The size of the SVG element is irrelevant and you may hide … Read more

[Solved] HTML random number to text

You just need to use an if..else statement: function RandomID() { var value; var rnd = Math.floor(Math.random() * 11); if (rnd === 7) value = “Wassup”; else if (rnd <= 5) value = “Hello”; else value = rnd; document.getElementById(‘id’).value = value; } <button class=”button” onclick=”RandomID();” style=”font-family: sans-serif;”>RUN</button> <input class=”input” type=”text” id=”id” name=”id” size=”3″ readonly /> … Read more

[Solved] CSS won’t work in firefox [closed]

Change .container td { color: #333; font-size: 14px; font-weight: normal; display: table-column; min-height: 19px; border-right: 1px solid #E3E3E3; border-bottom: 1px solid #E3E3E3; } to .container td { color: #333; font-size: 14px; font-weight: normal; min-height: 19px; border-right: 1px solid #E3E3E3; border-bottom: 1px solid #E3E3E3; } 2 solved CSS won’t work in firefox [closed]

[Solved] copying an input from a text box to another [closed]

$(document).ready(function(){ $(‘#checkbox’).click(function(){ if($(this).is(‘:checked’)){ $(‘textarea#caddress’).val($(‘textarea#paddress’).val()); }else{ $(‘textarea#caddress’).val(”); } }); }); <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js”></script> <td><label for=”address” style=”text-align: left;”>Permanent Address:<sup style=”color: red;”>*</sup> </label></td> <td><textarea cols=”20″ id=”paddress” name=”address1″ rows=”4″></textarea><i id=”pointadrs” style=”color: red;”></i> </td> <p><input type=”checkbox” name=”checkbox” id=”checkbox” class=”checkbox”>use same as my permenant address </p> <tr> <td><label for=”address” style=”text-align: left;”>Current Address:<sup style=”color: red;”>*</sup> </label></td> <td><textarea cols=”20″ id=”caddress” name=”address2″ rows=”4″></textarea><i id=”pointadrs2″ style=”color: … Read more

[Solved] Echoing PHP in HTML [duplicate]

Textarea’s don’t have a value attribute. The content gets wrapped in the <textarea> tags: <textarea id=”element_5″ name=”Description” class=”element textarea medium”> <?php echo $person[‘description’]; ?> </textarea> 4 solved Echoing PHP in HTML [duplicate]

[Solved] Left align the first column and center align the other columns in a Pandas table

The table can be pretty formatted in Pandas by assembling the two missing formatting conditions into a single df. I made the following two changes to the original code. Hide index numbers with hide_index() df[[“Unit”, “Abbreviation”, “Storage”]].style.hide_index() To apply to a subset of columns, you can use the subset parameter. Left align the first column … Read more

[Solved] My website doesn’t load jQuery [closed]

You made two mistakes: You put the link to the jQuery library inside the type attribute, instead of the src You are trying to load the scripts that make use of jQuery before jQuery itself Try this <script type=”text/javascript” src=”https://stackoverflow.com/questions/33256891/js/app/jQuery.min.js”></script> <script type=”text/javascript” src=”js/script.js”></script> 1 solved My website doesn’t load jQuery [closed]

[Solved] How to align images besides each other such that they get evenly distributed along the width of the page? [closed]

Something like this: HTML <div class=”container”> <figure> <img src=”http://placehold.it/128×128″> <figcaption>Caption 1</figcaption> </figure> <figure> <img src=”http://placehold.it/128×128″> <figcaption>Caption 2</figcaption> </figure> <figure> <img src=”http://placehold.it/128×128″> <figcaption>Caption 3</figcaption> </figure> <figure> <img src=”http://placehold.it/128×128″> <figcaption>Caption 4</figcaption> </figure> </div><!– /.container –> CSS body {margin:0;} .container {} figure { margin:0; width:25%; float:left; text-align: center; } JSFiddle Demo 1 solved How to align images besides … Read more

[Solved] Which button was clicked among a same class of buttons [duplicate]

Pass the value of idx as second parameter to the function Not sure about PHP syntax <?php for($i = 0; $i < 20; $i++) { $idx = $i; ?> <input class=”edit-btn” type=”button” name=”edit” value=”” onClick=”editMe(this, <?php echo $idx; ?>)”/> <?php } ?> then function editMe(el, idx){ } 3 solved Which button was clicked among a … Read more

[Solved] Can’t get list to center when using UL

<ul> elements have a default padding-left of 40px. Remove it with padding: 0; or padding-left: 0;. JSFiddle Example You can use your browser’s F12 developer tools to inspect elements and their margins or padding in the future. 0 solved Can’t get list to center when using UL