python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Multiple buttons function to expand and hide div section with javascript
Hope everyone is having fun on this fun (or frustrating 😂 like me) coding day. So, I came across a problem and was hoping someone could help guide me to the right solution. I want to set it so that w...
Phong Hoang
Votes: 0
Answers: 0
Add values into hidden form fields using JS
I am trying to insert a string into the form hidden field using JS and google tag manager.
This is the script/method (worked on a bunch of different forms)
(function(){
var selector1 = $('[id="l...
user3191724
Votes: 0
Answers: 1
Is passing a model ID to the controller through hidden fields safe?
Imagine I have a view that takes a model of type employee. Employee is defined like so:
Employee{
ID int,
Employee Name string
}
If I wanted to update an employee in the database I have to pass the mo...
Baraa Al-Wahidi
Votes: 0
Answers: 0
Django - Form - ForeignKey - Hidden - Default value
I have a Hidden ForeignKey in an update form that I want to set to value of default value of 2 in my html form, but I can't get it to work.
forms.py
eval_sent_state = forms.ModelChoiceField(widget...
Reventlow
Votes: 0
Answers: 1