Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Move this topic
Forum :
Getting Started
Using jQuery
Using jQuery Plugins
Using jQuery UI
Developing jQuery Core
Developing jQuery Plugins
Developing jQuery UI
QUnit and Testing
About the jQuery Forum
jQuery Conferences
jQuery Mobile
Developing jQuery Mobile
Sub forum :
Move this topic
Cancel
Using jQuery
bennetonss
Form checkbox checked value not activating
in
Using jQuery
•
9 years ago
I am using a form whereby the value from the selected checkbox is added to a link to define a search across a site.
But it is not working.
When i manually add "checked" attribute, I am able to get the input value via alert but value returns as undefined when i try to run the form.
Example:
http://jsfiddle.net/CJFS7/2/
1
Replies(7)
jakecigar
Re: Form checkbox checked value not activating
9 years ago
What select? There is no select!
http://jsfiddle.net/jakecigar/CJFS7/4/
looks for
$('[name="displayType"]').change(displayVals);
JΛ̊KE
Leave a comment on jakecigar's reply
bennetonss
Re: Form checkbox checked value not activating
9 years ago
Thanks Jake.
In case I have other form elements of the type <input>,
Can I just pass
$('input').change(displayVals);
or is this wrong?
Leave a comment on bennetonss's reply
jakecigar
Re: Form checkbox checked value not activating
9 years ago
You can do anything you want.
Why aren’t you just using a <form> with no script at all?
JΛ̊KE
jakecigar
Re: Re: Form checkbox checked value not activating
9 years ago
Watch out for using inout, because your submit is an <input> as well!
JΛ̊KE
Leave a comment on jakecigar's reply
bennetonss
Re: Form checkbox checked value not activating
9 years ago
"Why aren’t you just using a <form> with no script at all?"
Can you please give an example?
Leave a comment on bennetonss's reply
jakecigar
Re: Form checkbox checked value not activating
9 years ago
Something like
http://jsfiddle.net/jakecigar/CJFS7/5/
. With the right names and values on the inputs you can have the browser do all the work.
JΛ̊KE
Leave a comment on jakecigar's reply
bennetonss
Re: Form checkbox checked value not activating
9 years ago
Thank you so much for taking the time Jake. I'll study this.
Leave a comment on bennetonss's reply
Change topic type
Topic Type :
Discussions
Questions
Ideas
Problems
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to bennetonss's question
Top
Reply
{"z28991422":[14737000005481480,14737000005485183,14737000005485187,14737000005485189],"z2950240":[14737000005484361,14737000005484367,14737000005484369,14737000005484375]}
Statistics
7
Replies
2812
Views
1
Followers
Tags
Cancel
value
form
checkbox
undefined
jquery
Actions
Permalink