title: how to pass input value via jquery to php in magento adminhtml
body: <p>In Catalog > Attribute > manage atrribute > Manage label/ options. I have created a module that will pull/display 
  options of selected category. i have done all the code that will do the work.</p>
  
  <p>Now the problem is here:</p>
  
  <p>i want to pass a value of selected option (category id) from html list.</p>
  
  <p>This is how I pull and display the list of my categories.</p>
  
  <pre><code>app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Options.php
  
   public function getCategoryCollection(){
          $parentCategoryName = 'Default Category';
          $collection = Mage::getResourceModel('catalog/category_collection')
              -&gt;addFieldToFilter('name', $parentCategoryName)
              -&gt;getFirstItem()// The parent category
              -&gt;getChildrenCategories();
  
  
          $html = "&lt;select&gt;";
          $html = $html. "&lt;option&gt;Select&lt;/option&gt;";
          foreach ($collection as $items =&gt; $item) {
              $html = $html . "&lt;option value=" . $item-&gt;getEntityId() . "&gt;" . $item-&gt;getName() . "&lt;/option&gt;";
          }
  
          $html = $html . "&lt;/select&gt;";
  
          return $html;
      }
  </code></pre>
  
  <p>this is the function I want to pass when user do "onchange()" on the html select list</p>
  
  <pre><code>app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Options.php
  
  public function getCategoryOptions(){
  
          // Id of category we want to get attributes for
          $categoryId = 123;
          $sizeOption = array();
          // Products in that category
          $products = Mage::getModel('catalog/category')-&gt;load($categoryId); //put your category id here
          $productslist = $products-&gt;getProductCollection()-&gt;addAttributeToSelect('*');
          foreach($productslist as $product)
          {
              $sizeOption[] = $product['attribute_variant'];
          }
          return $sizeOption;
      }
  </code></pre>
  
  <p>app/design/adminhtml/default/default/template/eav/attribute/options.phtml
  I use "<code>&lt;td&gt;&lt;?php echo $this-&gt;getCategoryCollection(); ?&gt;&lt;/td&gt;</code>" to display the select options list. 
  Your help would be appreciated.</p>