Do javaScript accept multiple strings as a function parameter?
function name(Haydon Lyson){
//code
}
will it be accepted? If not then how can we pass multiple strings as function parameter.
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
Category Added in a WPeMatico Campaign
Do javaScript accept multiple strings as a function parameter?
function name(Haydon Lyson){
//code
}
will it be accepted? If not then how can we pass multiple strings as function parameter.
i am trying to submit a form but whenever i submit the form the entire website gets refreshed i dont want that to happen i want to submit the form without refreshing
import { useEffect, useState } from "react";
import axios from "axios";
export default function Add() {
const [close, setClose] = useState(false);
const [allValues, setallValues] = useState("");
function closeDialog() {
setClose(true);
}
function changeHandler(e) {
setallValues(e.target.value);
}
const submitValue = (e) => {
e.preventDefault();
const symptom = allValues;
const { name } = e.target.dataset;
const Data = {
add: allValues,
};
console.log(allValues);
//setAllValues({ ...all
const headers = {
Authorization: `token ` + localStorage.getItem("token"),
};
axios
.post("apiadd/", Data, {
headers: headers,
})
.then(() => {
alert(" submitted");
})
.catch((error) => {
alert("Cannot add again");
});
};
return (
<>
{close ? null : (
<div style={styles.cover}>
<h3>Add New </h3>
<hr />
<form style={styles.form} onSubmit={submitValue}>
<span>add</span>
<input
style={styles.input}
type="text"
onChange={changeHandler}
defaultValue={allValues}
//value=""
/>
<input style={styles.sbtn} type="submit" value="ADD" />
</form>
<button style={styles.dbtn} onClick={closeDialog}>
Done
</button>
</div>
)}
</>
);
}
i am trying to submit a form but whenever i submit the form the entire website gets refreshed i dont want that to happen i want to submit the form without refreshing
About Form
I have a signup form which is Only Single Form but it is divided into Three Parts by INDEX-1,2 and 3. So when index-1 is showing in that I have a particular field which I am showing using jquery so there I have given a particular event click and it checks the validation of the field. but there is a problem in logic that when I click in next button it submits the full form which I don’t want to submit. I want that when I click on index 1 then it submits only that particular field that I showed in the first index…
I gave the image belove
so I have divided this form into 3 parts and I have only one button and I gave jquery on every part using jquery and index that when I have index one then show me that selected fields and a button which takes to next index so when I gave validation to the fields and if fields are filled then go to next by event Onclick. but when I click the button it submits a full form which i don’t want…
can someone help me to figure this out…
I’m building a front-end shopping cart checkout page using React Hook Form. I am trying to get so that when I click on the “cash delivery” radio button, it will unregister and hide the input fields in the “cash-money” div. That way, when I hit the “continue and pay” button, it will render the PayModal and validate the form without the “ePin” and “eMoney” register inputs. But it’s not pulling up the modal even if all the fields are entered correctly.
I was able to get it to work if I click on the “e-money” radio button and then click back to the “cash” radio but not by the first click. I was also able to get it to work if I console log the Formstate.IsValid property, but not when it’s not console logged. How can I get the IsValid property to be true immediately after unregistering required inputs?
const CheckoutPage = () => {
const [method,
setMethod] = useState("e-money");
const [payModal,
setPayModal] = useState(false);
const {subTotal, vatCost, cartItems} = useSelector(store => store.cart);
const {register, unregister, handleSubmit, formState, formState: {
errors
}} = useForm({mode: "onChange"});
const shippingCost = 50;
const totalCost = subTotal + shippingCost + vatCost;
const onSubmit = data => console.log(data);
const onChangeValue = (method) => {
setMethod(method);
}
const toggleHandler = () => {
if(formState.isValid){
setPayModal(prev => !prev);
}
}
useEffect(() => {
if (method === "cash") {
unregister("ePIN");
unregister("eNumber");
}
},[method, unregister])
return (
<div className="checkout-container">
{payModal && (
<div className="modal-overlay">
<CheckoutModal/>
</div>
)}
<div className="checkout-content">
<div className="checkout-navbar">
<Navbar/>
</div>
<div className="container">
<Link to={"/"}>
<Button className="back-btn" text={"Go Back"} type={"type-5"}/>
</Link>
<form onSubmit={handleSubmit(onSubmit)} className="checkout-form">
<div className="checkout-div">
<h1 className="checkout-title">CHECKOUT</h1>
<div className="billing-details">
<h5>BILLING DETAILS</h5>
<div className="billing-details-content">
<div className="billing-form-group">
<div
className={`${errors.name
? "error-class"
: ""} label-div`}>
<label htmlFor="name">Name</label>
{errors.name && <span>Field Required</span>}
</div>
<input
className={`${errors.name
? "input-error"
: ""}`}
type="text"
name="name"
placeholder="Alexei Ward"
{...register("name", {required: true, maxLength: 100})}/>
</div>
<div className="billing-form-group">
<div
className={`${errors.email
? "error-class"
: ""} label-div`}>
<label htmlFor="email">Email Address</label>
{errors.email && <span>Field Required</span>}
</div>
<input
className={`${errors.email
? "input-error"
: ""}`}
type="email"
name="email"
placeholder="[email protected]"
{...register("email", {required: true, pattern: /^S+@S+$/i})}/>
</div>
<div className="billing-form-group">
<div
className={`${errors.phoneNumber
? "error-class"
: ""} label-div`}>
<label htmlFor="telephone">Phone Number</label>
{errors.phoneNumber && <span>Field Required</span>}
</div>
<input
className={`${errors.phoneNumber
? "input-error"
: ""}`}
type="tel"
name="telephone"
placeholder="202-555-0136"
{...register("phoneNumber", {required: true, min: 10, maxLength: 12})}/>
</div>
</div>
</div>
<div className="shipping-info">
<h5>SHIPPING INFO</h5>
<div className="shipping-content">
<div className="shipping-form-group">
<div
className={`${errors.address
? "error-class"
: ""} label-div`}>
<label htmlFor="address">Address</label>
{errors.address && <span>Field Required</span>}
</div>
<input
className={`${errors.address
? "input-error"
: ""}`}
type="text"
name="address"
placeholder="1137 Williams Avenue"
{...register("address", {required: true})}/>
</div>
<div className="shipping-flex-div">
<div className="shipping-form-group">
<div
className={`${errors.zipCode
? "error-class"
: ""} label-div`}>
<label htmlFor="zip-code">Zip Code</label>
{errors.zipCode && <span>Field Required</span>}
</div>
<input
className={`${errors.zipCode
? "input-error"
: ""}`}
type="number"
name="zip-code"
placeholder="10001"
{...register("zipCode", {required: true, min: 5, maxLength: 5})}/>
</div>
<div className="shipping-form-group">
<div
className={`${errors.city
? "error-class"
: ""} label-div`}>
<label htmlFor="city">City</label>
{errors.city && <span>Field Required</span>}
</div>
<input
className={`${errors.city
? "input-error"
: ""}`}
type="text"
name="city"
placeholder="New York"
{...register("city", {required: true})}/>
</div>
<div className="shipping-form-group">
<div
className={`${errors.country
? "error-class"
: ""} label-div`}>
<label htmlFor="country">Country</label>
{errors.country && <span>Field Required</span>}
</div>
<input
className={`${errors.country
? "input-error"
: ""}`}
type="text"
name="country"
placeholder="United States"
{...register("country", {required: true})}/>
</div>
</div>
</div>
</div>
<div className="payment-details">
<h5>PAYMENT DETAILS</h5>
<div className="payment-content">
<div className="payment-method-div">
<div className="payment-form-group">
<label>Payment Method</label>
</div>
<div className="payment-form-group">
<div
className={`payment-method ${method === "e-money"
? "payment-highlight"
: ""}`}
onClick={() => onChangeValue("e-money")}>
<label className="payment-label">
e-Money
</label>
<input
className="payment-radio"
onClick={() => onChangeValue("e-money")}
type="radio"
readOnly
checked={method === "e-money"}/>
</div>
<div
className={`payment-method ${method === "cash"
? "payment-highlight"
: ""}`}
onClick={() => onChangeValue("cash")}>
<label className="payment-label">
Cash On Delivery
</label>
<input
className="payment-radio"
onClick={() => {
onChangeValue("cash")
}}
type="radio"
readOnly
checked={method === "cash"}/>
</div>
</div>
<div className="cash-money-div">
{method === "e-money"
? (
<div className="e-money-div">
<div className="payment-form-group">
<div
className={`${errors.eNumber
? "error-class"
: ""} label-div`}>
<label htmlFor="e-money-number">e-Money Number</label>
{errors.eNumber && <span>Field Required</span>}
</div>
<input
className={`${errors.eNumber
? "input-error"
: ""}`}
type="number"
name="e-money-number"
placeholder="238521993"
{...register("eNumber", {required: true, min: 9, maxLength: 9})}/>
</div>
<div className="payment-form-group">
<div
className={`${errors.ePIN
? "error-class"
: ""} label-div`}>
<label htmlFor="e-money-pin">e-Money PIN</label>
{errors.ePIN && <span>Field Required</span>}
</div>
<input
className={`${errors.ePIN
? "input-error"
: ""}`}
type="number"
name="e-money-pin"
placeholder="6891"
{...register("ePIN", {required: true, min: 4, maxLength: 4})}/>
</div>
</div>
)
: (
<div className="cash-div">
<img src="../../assets/checkout/icon-cash-on-delivery.svg" alt="cash"/>
<p>The "Cash on Delivery" option enables you to pay in cash when our delivery
courier arrives at your residence. Just make sure your address is correct so
that your order will not be cancelled.</p>
</div>
)}
</div>
</div>
</div>
</div>
</div>
<div className="summary-div">
<div className="summary-content">
<h3 className="summary-title">SUMMARY</h3>
<ul className="summary-cart">
{cartItems.map(item => {
return <li key={item.id}>
<div className="summary-cart-info">
<img className="summary-cart-img" src={`../.${item.img}`} alt="thumbnail"/>
<div className="summary-cart-desc">
<p className="name">{item.name}</p>
<p className="price">$ {item.price}</p>
</div>
</div>
<p className="summary-item-count">x{item.count}</p>
</li>
})
}
</ul>
<div className="totals-div">
<div className="subtotal-price">
<h4>SUBTOTAL</h4>
<p>{`$ ${subTotal.toLocaleString("en-US")}`}</p>
</div>
<div className="shipping-price">
<h4>SHIPPING</h4>
<p>$ 50</p>
</div>
<div className="vat-price">
<h4>VAT (INCLUDED)</h4>
<p>{`$ ${vatCost.toLocaleString("en-US")}`}</p>
</div>
<br/>
<div className="grand-total-price">
<h4>TOTAL</h4>
<p className="grand-total-color">$ {totalCost.toLocaleString("en-US")}</p>
</div>
</div>
<Button
onClick={toggleHandler}
className="pay-btn"
text={"CONTINUE & PAY"}
type={"type-1"}/>
</div>
</div>
</form>
</div>
<Footer/>
</div>
</div>
)
} ```
I have a table that I get the userList as props and render it into the table with v-for="(user , index) in userList" :key="index" and as string :value="user.username" but now my swagger API needs me to patch it as an object of s.th like username:{value: "", operand: 1}
does anyone know how am I supposed to change the data type and send it as formData to my axios patch?
my axios.patch was also like this before i find out I need an object to pass :’)
async userEdit(id) {
const response = await this.$store.dispatch('axiosPatch', {url: `/employees/${id}`,
formData: {
username: this.username.value,
email: this.email,
mobile: this.mobile,
}
}, this.$data)
},
my input form is also like this:
<input type="text" class="text-xs text-secondary mb-0 text-center
border-0 bg-white w-100 p-1"
:disabled="!user.disabled"
:value="user.nationalCode">
I’ve just tried To write a very basic data to my firebase database but it isn’t working. Here’s is the code that i’ve used
<script src="https://www.gstatic.com/firebasejs/9.8.4/firebase-database.js"></script>
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.8.4/firebase-app.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: ""
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
function writeUserData() {
firebase.database().ref('users').set({ uId: document.getElementById('fname').value,
refercode:document.getElementById('lname').value})
</script>
<form name="myForm">
<div class="col-25">
<label for="fname">text1</label>
</div>
<div class="col-75">
<input type="text" id="fname" name="firstname" placeholder="Your PlayStore Email.." required></input>
<div class="col-25">
<label for="lname">text2</label>
</div>
<div class="col-75">
<input type="text" id="lname" name="codename" placeholder="Your PlayStore Email.." required></input>
</div> <button onclick="writeUserData()" class="button">Request Withdrawal</button></form>
But this isn’t writing any data on to my database. It returns an error in console, “writeUserData” is not defined.How can i solve this?
I am trying to build and deploy a web application. Luckily, I have the option of building the backend in either Python or JavaScript, and would like some help in choosing between Flask or Node/Express.
The application is going to be a website (no framework and a low amount of JS). Users enter some text into a website, and that text is sent to the backend. The backend then does some web scraping with the user-provided text, and computes some result; this result is then returned to the user.
Based on this description, which backend framework would be better for serving many concurrent users? I don’t think I’m dealing with “concurrency” per se, since users aren’t communicating with each other, but I would like to support many users being able to submit queries at a given time, and each receive a correct answer.
I am also failing to understand exactly why these two choices would be different, except for the choice of language (JS vs Python).
Please note that I am familiar with this site’s rules, and am not asking for an opinion of which framework is better – I am asking which framework would be better suited to my use case, and why. My background on this subject is obviously pretty weak, so if you can link to any additional material that might help me understand foundational concepts you think I don’t know, feel free to reply with that.
This is my first time trying to build and deploy a website that’s more than just a toy application, so apologies if this is a dumb question.
How can I make redundant and unnecessary sentences shorthand in javscript?
My code is below.
//initialization
document.querySelector('#categoryCheckNormal').checked = false;
document.querySelector('#categoryCheckDisabled').checked = false;
document.querySelector('#categoryCheckBlind').checked = false;
document.querySelector('#categoryCheckEvacuation').checked = false;
// If there is a classification, put a value
if (res.eventData.property.normal) {
document.querySelector('#categoryCheckNormal').checked = true;
} else if (res.eventData.property.disabled) {
document.querySelector('#categoryCheckDisabled').checked = true;
} else if (res.eventData.property.blind) {
document.querySelector('#categoryCheckBlind').checked = true;
} else if (res.eventData.property.evacuation) {
document.querySelector('#categoryCheckEvacuation').checked = true;
}
By the way, the code is redundant and less readable.
I’m wondering how I can change this to more elegant code.
Best Regards!
I am storing the todo-items on a array of objects. I want to map the array to get HTML elements. I was able to this using innerHTML but i want to do it with createElement.
Please help, I expect and <li><span>TEXT</span></li> output but I only get span. It seems append is not working.
this is the HTML:
<div class="todo">
<h1>Todo</h1>
<form name="todo--form">
<input type="text" name="todo--input" />
<button
type="submit"
name="todo--submit"
class="p-2 bg-slate-500 rounded"
>
Add
</button>
</form>
<ul class="todo--list"></ul>
</div>
this is the JS.
const addTodoForm = document.querySelector(`[name="todo--form"]`);
const todoList = document.querySelector('.todo--list');
const todos = [];
// function getLabel() {}
function handleSubmit(e) {
e.preventDefault();
const text = this.querySelector(`[name="todo--input"]`).value;
const item = {
text: text,
finished: false,
};
if (text) {
todos.push(item);
addTodoForm.reset();
const todoItems = todos.map((todo, i) => {
let newSpan = document.createElement('span');
let newLi = document.createElement('li');
newSpan.textContent = todo.text;
let newEl = newLi.append(newSpan);
return newEl;
});
console.log(todoItems);
todoList.append(...todoItems);
}
return;
}
addTodoForm.addEventListener('submit', handleSubmit);
output is only <span><span>
I would like to render a component out of two depending on a flag value. I was wondering if there is a way to do this in only one line?
I was thinking something like this: <(flag ? Comp1 : Comp2) att1={attValue} ... />
If there is not a way, is it possible to somehow add it as a feature in the future?
<script lang="ts">
import { onMount } from 'svelte';
import { Chart } from 'frappe-charts';
let chartElem;
const chartData = {
labels: ["12am-3am", "3am-6pm", "6am-9am", "9am-12am",
"12pm-3pm", "3pm-6pm", "6pm-9pm", "9am-12am"
],
datasets: [
{
name: "Some Data", type: "bar",
values: [25, 40, 30, 35, 8, 52, 17, -4]
},
{
name: "Another Set", type: "line",
values: [25, 50, -10, 15, 18, 32, 27, 14]
}
]
};
onMount(() => {
console.log(chartElem); // always undefined... why??
new Chart({
parent: chartElem,
title: "My Awesome Chart",
data: chartData,
type: 'axis-mixed', // or 'bar', 'line', 'scatter', 'pie', 'percentage'
height: 250,
colors: ['#7cd6fd', '#743ee2']
});
});
<div bind:this={chartElem}>loading chart...</div>
I was trying to plot a chart in my Svelte component and above is my current code. According to the Svelte doc, bind:this is the way to refer to the dom node chartElem so that in the component code I can plot a chart onto that div.
But somehow I keep getting undefined with my chartElem variable. Where did I do wrong? Or Perhaps I’d need to go for a different chart library other than Frappe Chart?
I am wanting to add the return value of a dropdown to an object I have created with placeholders. (Thanks and apologies in advance, very baby dev here).
pinecones.onchange = function(e) {
let value = pinecones.options[pinecones.selectedIndex].value;
console.log(value);
}
Instead of console logging the return value, I want to add it to this object:
let stack = {
pinecones: null,
kindling: null,
logs: null
};
EMAILJS
I have two EmailJS forms in this React app website but only the second one (booking form) that i added wont work. It always gets the same error (412 text: “Gmail_API: Recipient address required”) even when I removed all instance of EmailJS and redid it with the booking form being done first instead of the simpler contact form. I also tried the multiple ways to make the call and continued to receive the same error.
Another StackOverflow post suggested disconnecting and reconnecting. I tried with both forms active and only one active and didn’t produce any change.
I had first used .sendForm which takes in a string or Html format based on an id, but in an attempt to simplify I switched to using .send
I used EmailJS’s own UI to send a test email and when I hard coded in a {{from-email}} the test itself still got the same error code despite being connected and the contact form continuing to work.
repo:
https://github.com/greenHermes/KindojoReact/tree/main/src
relevant files: components/Booking/index.js and pages/contact.js
Shown below: Booking/index.js
...
const [value, onChange] = useState(new Date());
const SERVICE_ID = 'service_lgqkr0u'
const TEMPLATE_ID = 'template_zza26bt'
const { register, handleSubmit } = useForm();
const onSubmit = (data, e) => {
e.preventDefault();
var templateParams = {
name: data.name,
email: data.email,
numStudents: data.numStudents,
lesson: data.lesson,
dateTime: value,
location: data.location,
note: data.note,
from_email: data.email
};
emailjs.send(SERVICE_ID, TEMPLATE_ID, templateParams, 'rpxEK_3C9Avbj3iEi')
.then((response)=>{
console.log('response', response)
if (response.status === 'success') {
alert("Message Sent.");
this.resetForm()
} else if (response.status === 'fail') {
console.log('failure')
alert("Message failed to send.")
}
})
resetForm();
};
const resetForm = ()=> {
setName('')
setEmail('')
setLesson('')
onChange(new Date())
setNumStudents('')
setLocation('')
setMessageText('')
setLocation('')
}
return (
<Container>
<Grid container item sx={{color: 'white', display:'flex', justifyContent: 'center'}}>
<Typography variant='h2'>
Book a Class
</Typography>
</Grid>
<form id='bookingForm' onSubmit={handleSubmit(onSubmit)} >
<FormGroup>
<Card sx={{p: 2,backgroundColor:'rgb(233, 248, 244)'}}>
<Grid container sx={{display:'flex'}}>
<Grid container sx={{display:'flex', justifyContent:'space-between'}}>
{/* NAME */}
<Grid item sm={6} xs={12}>
<InputLabel>Name</InputLabel>
<FormControl sx={{width:'60%'}}>
<TextField {...register('name')} value={name} onInput={(e) => handleNameChange(e)} variant='outlined' sx={{borderRadius:'4px', backgroundColor:'white'}}/>
</FormControl>
</Grid>
{/* # STUDENTS */}
<Grid item sm={6} xs={12} sx={{alignItems:'flex-start'}}>
<InputLabel># of Students</InputLabel>
<FormControl sx={{backgroundColor:'white', width: '60%'}}>
<Select
{...register('numStudents')}
variant='outlined'
value={numStudents}
onChange={handleChangeStudents}
>
<MenuItem sx={{color:'black'}} value='1'>1</MenuItem>
<MenuItem sx={{color:'black'}} value='2'>2</MenuItem>
<MenuItem sx={{color:'black'}} value='3'>3</MenuItem>
<MenuItem sx={{color:'black'}} value='4'>4</MenuItem>
<MenuItem sx={{color:'black'}} value='5'>5+</MenuItem>
</Select>
</FormControl>
</Grid>
</Grid>
<Grid container sx={{display:'flex', justifyContent:'space-between'}}>
{/* EMAIL */}
<Grid item sm={6} xs={12} sx={{py:1}}>
<InputLabel >Email</InputLabel>
<FormControl sx={{width:'60%'}}>
<TextField {...register('email')} value={email} onInput={(e) => handleEmailChange(e)} variant='outlined' required sx={{backgroundColor:'white', borderRadius:'4px'}}></TextField>
</FormControl>
</Grid>
{/* CLASS */}
<Grid item sm={6} xs={12} sx={{alignItems:'flex-start', py:1}}>
<InputLabel >Choose a Class</InputLabel>
<FormControl sx={{backgroundColor:'white', width: '60%'}}>
<Select
{...register('lesson')}
required
variant='outlined'
value={lesson}
sx={{backgroundColor:'white', minWidth: '100px'}}
onChange={handleChange}
>
<MenuItem sx={{color:'black'}} value='bodyFundamentals'>Body Fundamentals</MenuItem>
<MenuItem sx={{color:'black'}} value='poi'>Poi</MenuItem>
<MenuItem sx={{color:'black'}} value='ropeDart'>Rope Dart</MenuItem>
<MenuItem sx={{color:'black'}} value='dragonStaff'>Dragon Staff</MenuItem>
<MenuItem sx={{color:'black'}} value='contactStaff'>Contact Staff</MenuItem>
<MenuItem sx={{color:'black'}} value='bullwhip'>Bullwhip</MenuItem>
<MenuItem sx={{color:'black'}} value='nunchucks'>Nunchucks</MenuItem>
{/* <MenuItem sx={{color:'black'}} value='firespinning'>Intro to fire spinning</MenuItem> */}
<MenuItem sx={{color:'black'}} value='puppyhammer'>Puppyhammer</MenuItem>
</Select>
</FormControl>
</Grid>
</Grid>
<Grid container sx={{display:'flex', justifyContent:'space-between', py: 1}}>
{/* DATE */}
<Grid item sm={6} xs={12} sx={{py:1}}>
<InputLabel>Request a Date and Time</InputLabel>
<FormControl sx={{backgroundColor: "white", fontSize:'18px'}}>
<Picker {...register('dateTime')} onChange={onChange} value={value} required />
</FormControl>
</Grid>
{/* LOCATION */}
<Grid item sm={6} xs={12} sx={{py:1}}>
<InputLabel >Select a Location</InputLabel>
<FormControl sx={{backgroundColor:'white', width: '60%'}}>
<Select
{...register('location')}
required
variant='outlined'
value={location}
sx={{backgroundColor:'white', minWidth: '100px'}}
onChange={handleChangeLocation}
>
<MenuItem sx={{color:'black'}} value='robinWilliamsMeadow'>GGP: Robin Williams Meadow</MenuItem>
<MenuItem sx={{color:'black'}} value='poloFields'>GGP: Polo Fields</MenuItem>
<MenuItem sx={{color:'black'}} value='poloFields'>GGP: Other</MenuItem>
<MenuItem sx={{color:'black'}} value='landsEnd'>Land's End Lookout</MenuItem>
<MenuItem sx={{color:'black'}} value='Dolores'>Dolores Park</MenuItem>
<MenuItem sx={{color:'black'}} value='alamoSquare'>Alamo Square Park</MenuItem>
<MenuItem sx={{color:'black'}} value='Kezar'>Kezar Stadium</MenuItem>
<MenuItem sx={{color:'black'}} value='other'>Other</MenuItem>
</Select>
</FormControl>
</Grid>
</Grid>
<Grid item xs={12}>
{/* NOTE */}
<Grid item>
<InputLabel>Note</InputLabel>
<TextareaAutosize {...register('note')} style={{width: 300}} sx={{backgroundColor: 'white', borderRadius:'4px'}} placeholder="Want to book Intro to fire-spinning? Need to add details or specifics? Add a message here"
onInput={(e) => handleMessageChange(e)} value={messageText} />
</Grid>
<Grid container sx={{pt: 2, display:'flex', alignItems:'center', width:'auto', justifyContent:'space-around'}}>
<Grid item>
<Button sx={{border:'2px solid rgb(4, 215, 159)', px:'16px', py: '2px'}} onClick={resetForm} type='reset'>Cancel</Button>
</Grid>
<Grid item>
<ThemeButton text='Book a Class' type='submit'/>
</Grid>
</Grid>
</Grid>
</Grid>
</Card>
</FormGroup>
</form>
</Container>
);
}```
[1]: https://stackoverflow.com/questions/68463095/why-am-i-getting-error-while-adding-service-in-emailjs
I need to take all persons names, using quasar and vue3.
I need to take all persons data, but I only can take the first object fields like row.persons[0].name.
quasar collumn data
{
name: "personName",
label: "Name",
field: rows => rows.persons.name, //here that I can't return both person content
sortable: true,
align: "center",
},
Json response
{
"id": 4291,
"persons": [
{
"id": 12485,
"name": "",
"email": "",
},
{
"id": 21898,
"name": "",
"email": "",
}
]
}
I wonder if there is any way that I can see my website changes after I upload new code without deleting cached data on google ?