Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8331391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:24:17+00:00 2026-06-09T02:24:17+00:00

So i have a checkbox and when it its checkSate is changed i want

  • 0

So i have a checkbox and when it its checkSate is changed i want it to call a method.

heres my checkbox:

<tr><td><input type="checkbox" id="check2" name = "check2" Checked="True" runat="server" OnCheckedChanged="OnCheckedChangedMethod(count);">Sensor 1</input></td></tr>

then in my script i have:

<script type="text/javascript">
    function OnCheckedChangedMethod(count) {
        document.getElementById('mc_comboView_players').innerHTML = "<h1>" + count + "</h1>";
    }
    /*other functions*/
</script>

i have invoked the method via a button so i know that its works, its just not being called.

Any ideas, i think i have some wronge syntax but have not been able to figure it out.

ps i have looked else where first

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:24:18+00:00Added an answer on June 9, 2026 at 2:24 am

    Use onchange instead of OnCheckedChanged as OnCheckedChanged is not javascript event for checkbox change.

    Also pass some valid value in OnCheckedChangedMethod as count might be undefined

    <input type="checkbox" id="check2" name = "check2" Checked="True" runat="server" onchange="OnCheckedChangedMethod(7);">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this html @foreach (var item in Model.Options) { <input type=checkbox checked=checked name=selectedObjects
Hello everyone I have a checkbox I want to check if its checked or
net mvc3 application I have a checkbox: <input type=checkbox id=daStores name=CheckBox1 onclick=filter() /> How
I have a custom Checkbox its made in a Div <div class=zs name=toggle state=on
I have a checkbox defined as follows: <CheckBox x:Name=T09_CH105 IsChecked={Binding Path=T09_CH105,Mode=TwoWay} Content=Others/> And its
I want to change the background color of checkbox when its checked instead of
I have one checkbox - when its checked all the items in listbox are
I have these inputs and checkbox in a form <input class=validate[minCheckbox[1]] checkbox id=maxcheck_0 type=checkbox
I have multiple checkbox in my page. i want to retrieve its values if
So I have a checkbox and a span <input type=checkbox class=checker> <span class=something>Label</span> From

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.