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

  • SEARCH
  • Home
  • 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 6101913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:33:14+00:00 2026-05-23T13:33:14+00:00

As you see I have class whose name is table; and I have many

  • 0

As you see I have class whose name is table; and I have many functions on it “mainface” is one of them; these function is like my interface there are some check box and combobox on it; I want to write some JavaScript on “All” checkbox -> onclick=" ".
I want that when the user click on the “All” checkbox and option will disappear on the screen but I cannot find a way to do it.
Is there any way to do it ? Can I add call the JavaScript function to onclick?

<script type="text/javascript" >
function hide(){
            if(document.form.All.checked){
                 document.getElementById('option').style.visibility="hidden";
            }
}
</script>

</head>
<body> 

<?php

class table{

   public function   __construct() {
       echo table:: mainface();              
   }

   public function mainface()
   {
      $arayuz=" ";
      $arayuz.="<form name=form action=index.php method=post>";
      $arayuz.="<fieldset>";

    $arayuz.="<input type=checkbox name=All value=All onclick='SOME JAVA SCRIPT FUNCTION'>;

}
?>
  • 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-05-23T13:33:15+00:00Added an answer on May 23, 2026 at 1:33 pm

    php file:

    public function mainface()
    {
        $output = "<script type=\"text/javascript\" src=\"/path_to_your_js/table.js\">-</script>";
        $output.= "<form name =\"form\" action=\"index.php\" method=\"POST\">";
        $output.= "<fieldset>";
        $output.= "<input type=\"checkbox\" name=\"ALL\" value=\"ALL\" onclick=\"checkAll(this)\">";
    }
    

    And then in table.js:

    function checkAll( myCheckBox )
    {
        //do some stuff you need here
        myCheckBox.style.display = "none";
    }
    

    I hope that helps…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have come to see an Installer class item in Visual studio. Why they
I have see code like this Dim s as something = new something Dim
I see an application have used Log.info = some info where are these logs
I have two models such that class JobTitle(models.Model): name = models.CharField(max_length=1000) class Employer(models.Model): jobtitle
I have such model and query class Employer(Models.model) name = ... class JobTitle(Models.model) name
I have some JS you'll see below. I want the inner class object to
I have a table, of whose number of columns can change depending on the
i see they have a version of resharper for vs 2010 http://www.jetbrains.net/confluence/display/ReSharper/ReSharper+5.0+Nightly+Builds can i
Sometimes I see and have used the following variation for a fast divide in
(resolved: see bottom) I have the following code snippet: Protected Sub SqlDataSource1_Inserted(ByVal sender As

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.