473,544 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Forum

JavaScript web scripting language - Ask questions about JavaScript development, jQuery, Vue, React, the DOM, cross-browser scripting, event handling, OOP, cookies, client-side form validation, built-in objects like Date, String, Array and Object, performance and more.
1
1,225
thread by: cmptr123 | last post Aug 26 '19 by: gits
Hi! I want to make a simple website (for college project) which will let patients choose their time of appointment. I have trouble making buttons (with time written on them) which will disappear after patient clicks "submit". All patients are logged in with unique usernames and passwords so when they click submit and someone else logs in to...
4
1,250
thread by: Zayn | last post Sep 2 '19 by: gits
<table style="width:50%"> <tr> <th>Product</th> <th>Part Number</th> <th>Quantity</th> <th>Unit Price</th> <th>Subtotal</th> <tr> i want to calculate total of 5 items by clicking a button using javascript.
12
1,067
thread by: Zayn | last post Sep 5 '19 by: gits
<!DOCTYPE html> <!-- The DOCTYPE tells the browser what version of HTML it should be expecting. --> <html> <head> <meta charset="UTF-8"> <title>Order Form</title> <!-- To reference a single stylesheet, use the link element: --> <link href="css/OrderForm.css" rel="stylesheet"> <style> /* Make all the input elements that have...
3
3,918
thread by: Zayn | last post Nov 5 '19 by: gits
<script> function val() { //ifnewline found or blank raise an alert } </script> <form> <textarea name = "pt_text" rows = "8" cols = "8" class = "input" WRAP ></textarea> <input type=""button" onclick="val();" </form>
1
1,263
thread by: Zayn | last post Sep 6 '19 by: gits
<script> function validateForm() { var firstname = document.getElementById("text1").value; var surname = document.getElementById("text2").value; var email = document.getElementById("text3").value; var cellnumber = document.getElementById("text4").value; var address = documnet.getElementById("text5").value; var...
2
1,250
thread by: Zayn | last post Sep 7 '19 by: gits
<!DOCTYPE html> <!-- The DOCTYPE tells the browser what version of HTML it should be expecting. --> <html> <head> <meta charset="UTF-8"> <title>Order Form</title> <!-- To reference a single stylesheet, use the link element: --> <link href="css/OrderForm.css" rel="stylesheet"> <style> /* Make all the input elements that have...
2
2,785
thread by: Zayn | last post Jun 2 '20 by: AjayGohil
I'm working on an assignment for school where we're working with JavaScript (I'm only allowed to use JavaScript) to validate a form for a payment page. It's my first time working with JavaScript so and I feel a bit lost..I need to link my html and javascript with a button HTML CODE <td><strong>Expiry Date</strong></td> <td><input...
1
1,258
thread by: Zayn | last post Sep 10 '19 by: gits
I'm working on an assignment for school where we're working with JavaScript (I'm only allowed to use JavaScript) to validate a form for an order. It's my first time working with JavaScript so and I feel a bit lost.. i need the javascript <td><strong>Card Number</strong></td> <td><input type="text" id="text6" name="fcardnumber" maxlength="30"...
3
1,629
thread by: Zayn | last post Sep 16 '19 by: gits
I'm working on an assignment for school where we're working with JavaScript (I'm only allowed to use JavaScript) to validate a form for a payment page. It's my first time working with JavaScript so and I feel a bit lost..i need to link htmp radio buttons and javascript with a Calculate button thml code <td><input type="text" id="text7"...
2
2,315
thread by: mattkrebs | last post Jan 28 '20 by: AjayGohil
<style> .blueback { background-color="lightblue"; } .yellowback { background-color="yellow"; }
1
1,595
thread by: mattkrebs | last post Oct 14 '19 by: gits
1st piece of code allows me to use an alert to compile a list of grades: <body onload="loadGrades()"> <button onclick="myFunction()">Add a grade!</button> <p id="grades"></p> <script> var grades = ;
1
1,844
thread by: AjayGohil | last post Oct 17 '19 by: gits
how to validation on multiple time slot using javascript check in time image
1
1,831
thread by: luckytaneja | last post Oct 18 '19 by: gits
need a script/program that stop particular website to open/browse on laptop. if anyone try to open that website, laptop will be shutdown. do any provide me that script or provide any hint/suggestion regarding this.
1
1,710
thread by: jusanc | last post Oct 28 '19 by: gits
I have coded a script and I got confused where I should call the function. I know to call it from the outside of it, but I want to implement a process entry function before the calculate function. I am stuck. I am posting a piece of the coding I have don: "use strict"; var $ = function (id) { return document.getElementById(id); //Asking...
1
1,682
thread by: mattkrebs | last post Oct 29 '19 by: gits
Hello, I know I can reproduce what is written in input boxes in other input boxes --- like with "shipping" and "billing" addresses. However, I haven't been able to make it so I can present that entered data somewhere else - like when people enter data on a website and then there answers show up in "Settings." I tried adding:...
3
2,671
thread by: Asif03 | last post Feb 12 '20 by: gits
Hi I'm trying to show a table based on what choice is made from a drop down box.the table will have two columns and the selected value of the table will be the number of rows of the table with additional row for heading of tables <select name="dropdown" size="1"> <option selected value="">Please make a selection</option> <option...
1
1,991
thread by: DavidFernas | last post Nov 7 '19 by: gits
Hello, I noticed a web design course at my community college and it includes "html, dhtml, and javascript." I've been researching front end development online, and this is the first time I've seen dhtml included. Is dhtml still relevant/used/worth learning or is it outdated? I've also read that it's still used but not always called dhtml.
1
2,106
thread by: OliverGomes | last post Nov 7 '19 by: gits
I remember a long time ago about a technology called "behaviors" that allowed you to define a, well, behavior for HTML elements. A way of defining a template for reacting under javascript events and stuff like that. For example, making all buttons on a website toggle between colors onMouseOver and display an alert onClick just by assigning them...
1
1,698
thread by: ahmedsa | last post Dec 30 '19 by: gits
How to return value of Longitude and latitude from json using angular 7? my url as following : http://192.168.7.xxx:9200/location/_doc/27737 json returned from url above is : {"_index":"location","_type":"_doc","_id":"27737","_version":1,"_seq_no":5577,"_primary_term":1,"found":true,"_source":{"Locid":27737,"GPS1":"25.0173,...
4
18,221
thread by: SagarJaybhay | last post Mar 16 '22 by: ramisthand76
An array is a collection and it is zero-indexed. The meaning of this is the first element is at index zero and the last element is at an index of array length -1 position. The array in JavaScript has length property which returns the size of that array. Example: var array = ; console.log("Array Length -- "+ array.length);
6
3,436
thread by: aurangabadzone | last post Mar 10 '20 by: michaelsantony
I am a Student...I've checked a few places for an answer but I could not find one, so I thought I'd ask. I created a website on HTML5 project webside works cool on crome as i wished but it does not work on Internet Explorer.i have internet explorer 11 and latest Crome browser. ...how can i solve this problem? what can be changed in webside that it...
5
1,444
thread by: tsadfsfsd | last post Jan 17 '20 by: gits
i want to check a checkbox and even if the page is refreshed i want the state of checkbox(enable or disable previously)must be same and only after the user change the state of checkbox it should be undone.
3
3,019
thread by: rhemielco | last post Mar 10 '20 by: michaelsantony
In my application, as a newbie, there are lots of images i used which is bigger isize which makes apps to laggy and difficult. Does any what are the ways in optimizing images and make thejavascript run smoothly? Thanks
1
1,879
thread by: oandrekerr | last post Feb 19 '20 by: gits
I have a script that get data from two different APIs, but it isn't redirecting in the end of the last request to to the generated link, but it happens only for iPhone users. What am I doning wrong? I can't see it anywhere. function calc(){ $('#btCalc').addClass('is-loading'); var req = new XMLHttpRequest();...
0
1,663
thread by: georgejacob | last post Mar 20 '20 by: georgejacob
Hi Everyone, If I have a network printer, how to Fetch total printed pages from network printer using Javascript in IBM notes application with the help of IBM domino designer? Anyone, please help me.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.