Click here to Skip to main content
14,242,790 members

Web Development

 
PinnedHow to get an answer to your question Pin
Chris Maunder4-Sep-10 2:25
adminChris Maunder4-Sep-10 2:25 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 22:40
adminChris Maunder12-Jul-09 22:40 
QuestionHow to generate complex Multi-Color-Gradients with PHP? Pin
Member 1453705321-Jul-19 8:23
memberMember 1453705321-Jul-19 8:23 
AnswerRe: How to generate complex Multi-Color-Gradients with PHP? Pin
Richard MacCutchan14hrs 16mins ago
protectorRichard MacCutchan14hrs 16mins ago 
SuggestionMessage Closed Pin
11-Jul-19 13:14
memberMember 1452812011-Jul-19 13:14 
QuestionWhen trying to reload DataTable I get error:Uncaught TypeError: Cannot set property 'data' of null Pin
KGr289-Jul-19 4:49
memberKGr289-Jul-19 4:49 
QuestionPerforming Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 7:54
memberKGr288-Jul-19 7:54 
AnswerRe: Performing Ajax on dataTable where checkbox is clicked Pin
ZurdoDev8-Jul-19 8:06
professionalZurdoDev8-Jul-19 8:06 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 8:09
memberKGr288-Jul-19 8:09 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 8:58
memberKGr288-Jul-19 8:58 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
ZurdoDev8-Jul-19 9:07
professionalZurdoDev8-Jul-19 9:07 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 9:28
memberKGr288-Jul-19 9:28 
AnswerRe: Performing Ajax on dataTable where checkbox is clicked Pin
ZurdoDev8-Jul-19 9:40
professionalZurdoDev8-Jul-19 9:40 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 9:48
memberKGr288-Jul-19 9:48 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
ZurdoDev8-Jul-19 9:50
professionalZurdoDev8-Jul-19 9:50 
GeneralRe: Performing Ajax on dataTable where checkbox is clicked Pin
KGr288-Jul-19 10:34
memberKGr288-Jul-19 10:34 
QuestionDeply Web API to IIS Pin
Kevin Marois2-Jul-19 4:22
professionalKevin Marois2-Jul-19 4:22 
AnswerRe: Deply Web API to IIS Pin
F-ES Sitecore2-Jul-19 4:52
mveF-ES Sitecore2-Jul-19 4:52 
GeneralRe: Deply Web API to IIS Pin
Kevin Marois2-Jul-19 5:04
professionalKevin Marois2-Jul-19 5:04 
AnswerRe: Deply Web API to IIS Pin
ZurdoDev2-Jul-19 10:28
professionalZurdoDev2-Jul-19 10:28 
GeneralRe: Deply Web API to IIS Pin
Kevin Marois2-Jul-19 10:39
professionalKevin Marois2-Jul-19 10:39 
QuestionHelper Methods MVC Pin
KGr2825-Jun-19 7:52
memberKGr2825-Jun-19 7:52 
GeneralRe: Helper Methods MVC Pin
Richard Deeming25-Jun-19 9:00
mveRichard Deeming25-Jun-19 9:00 
GeneralRe: Helper Methods MVC Pin
KGr2825-Jun-19 9:21
memberKGr2825-Jun-19 9:21 
GeneralRe: Helper Methods MVC Pin
Richard Deeming25-Jun-19 9:35
mveRichard Deeming25-Jun-19 9:35 
Javascript doesn't create global variables for elements in your page. If you want to refer to an element by ID, you have to use the document.getElementById method[^].
@Html.CheckBox("IncludeClosed", false, new { onChange = "document.getElementById('IncludeClosed').submit()"})

But if your checkbox is outside of your form, it's not going to be sent back to the server. Only the input elements within the form will be submitted with the form.

You might be able to use the form attribute[^] to work around that. But it's not supported in any version of Internet Explorer or Microsoft Edge. If you need to support either of those browsers, you'll have to move the checkbox inside the form - at which point, your original code will start working.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.