Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Default the select checkbox to 'selected'
Re: Default the select checkbox to 'selected' [message #2083 is a reply to message #2082] Tue, 19 May 2009 11:59 Go to previous message
AJM is currently offline  AJM
Messages: 2361
Registered: April 2006
Location: Surrey, UK
Senior Member
Simple. All you have to do is put code similar to the following in the _cm_post_geData() method:
    foreach ($rows as $rownum => $rowdata) {
        if ($rowdata['id'] == 'whatever') {
            $rows[$rownum]['selected'] = true;
        } // if
    } // foreach

It would be a waste of time removing the select box from the screen as there would be no way to mark the row as selected.


 
Read Message
Read Message
Previous Topic: problem extending a table class
Next Topic: Restrict the input size of a multi-line text box
Goto Forum:
  


Current Time: Fri Sep 27 23:32:29 EDT 2024

Total time taken to generate the page: 0.00907 seconds