[Solved] Adding +/- to collapse menu

I updated your fiddle: http://jsfiddle.net/5BRsy/7/ Basically, you are adding some kind of html that you will use to represent your toggle. In your case I used <span>+</span>. <tr><td class=”btn”><span>+</span> used</td><td>1gb</td><td>2gb</td></tr> Then, when you click the <span> (or the + sign I should say) you toggle the display of your content, as you were already doing, … Read more

[Solved] Add JS Script to this HTML

<script src=”https://stackoverflow.com/js/count-down/timecircles.js” type=”text/javascript”></script> <link href=”http://stackoverflow.com/js/count-down/timecircles.css” type=”text/css”/> Stick this in the head of your HTML. 7 solved Add JS Script to this HTML

[Solved] Format date with “/” to “-” with javascript [duplicate]

.toLocaleDateString() returns a string formatted according to the user’s locale, meaning the format will match whatever is set on the user’s machine. For me, that’s 06/01/2016 but for an American it might be 01/06/2016 (because they’re weird like that). You should define your own format if you want a fixed one: function pad(n) {return (n<10 … Read more

[Solved] Securely send form data instead of using post [closed]

This is not really a good question, but you still might look at the following links: http://php.net/manual/en/tutorial.forms.php http://www.php.net/manual/en/features.file-upload.post-method.php http://code.google.com/a/apache-extras.org/p/phpmailer/ 0 solved Securely send form data instead of using post [closed]

[Solved] Why does the e.preventDefault function in javascript not work for the checkbox? [closed]

You have an spelling-error in your code: querySelecotr should be querySelector. You can also use getElementById to get an element by its id-property. Both versions work in the browsers i tested (Firefox, Chrome, Safari). If you use preventDefault(), the checked-state will be restored after the event-handler is completed. So any change inside that event-handler will … Read more

[Solved] how to creat a javascript function that combine input values from user input and out put them in a phrase? [closed]

First of all, your question is unclear. What have you tried? What are you trying to achieve? Here are a simple example is to get you started. Just get the value of each field, and combine the value into a string. function combineText() { var position = document.getElementById(‘position’).value; var startDate = document.getElementById(‘startDate’).value; var endDate = … Read more

[Solved] CSS Image parent P tag height remains zero [closed]

You can just add overflow:auto to the <p> that contains the images and remove all the <p>.</p> <p style=”text-align: center; overflow:auto”> <img class=”alignleft wp-image-48 size-thumbnail” src=”http://poqueira.com/en/wp- content/uploads/2013/08/jamones-secando-150×150.jpg” alt=”jamones-secando” width=”150″ height=”150″> <img class=”alignleft size-thumbnail wp-image-50″ src=”http://poqueira.com/en/wp-content/uploads/2013/08/queso_curado-150×120.jpg” alt=”queso_curado” width=”150″ height=”120″> <img class=”alignleft size-thumbnail wp-image-49″ src=”http://poqueira.com/en/wp-content/uploads/2013/08/embutidos-150×150.jpg” alt=”embutidos” width=”150″ height=”150″> </p> 1 solved CSS Image parent P tag height … Read more

[Solved] How to copy the selected value from one form input field to another form input field

Here is another way, without jQuery: <script> function update(){ let updateValue = document.getElementById(“name”).value; document.getElementById(“name2″).value = updateValue; } </script> <form action=”/new” method=”POST” > <input list=”name” type=”text” name=”name” id=”name” onchange=”update()”> <datalist id=”name”> <option value=”Hello”> <option value=”Hi”> </datalist> <button>Submit</button> </form> <form action=”/new1″ method=”POST”> <input type=”text” name=”name” id=”name2″ value=”name” > </form> 1 solved How to copy the selected value … Read more

[Solved] How to get hyperlink inside iframe

You can use the methods below: var div = document.GetElementByClass(“name”); var link = div.href; Or: var iframe = document.GetElementById(“targetid”); var link = iframe.src; 1 solved How to get hyperlink inside iframe

[Solved] How to make a small, node-like circle in CSS

I got you fam. 1) Let’s create some CSS circles. Hella easy with border-radius. <div class=”circle”></div> .circle { border: 5px solid black; border-radius: 50%; width: 100px; height: 100px; } Look at this gorgeous circle! Now we need some child nodes. MOAR CIRCLES! Also, we should start thinking about positionin’ these circles. position: absolute? Pssh, You … Read more

[Solved] How do I relay First Name to the right of Hello after a user enters it? [closed]

If you are just looking to populate an element with the return from two prompts i think this will fit your needs. function greeting() { var firstName, lastName; firstName = prompt(“Enter your First Name”); lastName = prompt(“Enter your Last Name”); var greetingDiv = document.getElementById(‘greeting’); greetingDiv.innerHTML = firstName + ” ” + lastName; } greeting(); 1 … Read more