Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

style.display = inline - different in FF/IE

  • 11-11-2008 10:52am
    #1
    Registered Users, Registered Users 2 Posts: 8,070 ✭✭✭


    Incompatibilities are driving me insane

    Basically have a combo box, on selecting a value it reveals x amount of feilds below.
    Table-row-group is incompatible with IE, where as 'inline' works with IE but shows up weird for FF, 'block' shows weird for both.

    link

    Change combo box at the end , 'No of children..'
    
    <script type="text/javascript">
    function display(id1){
      document.getElementById('kid0').style.display = "inline";
    document.getElementById(id1).style.display = "inline";
    }
    </script>
    
    <table>
    <tr><td>
    
     <select  class="inputtext" name="kids" onChange="display(this.value);">
    <option value="">0</option>
    <option value="child1">1</option>
    <option value="child2">2</option>
    <option value="child3">3</option>
    <option value="child4">4</option>
    </select></td></tr>
    
    
    
    <tbody id="kid0" style="display:none;">
    <tr><td class="lightForm"><font face="arial" size="2">Ages of Children:</font></td>
    <td class="lightForm"></td></tr>
    </tbody>
    
    <tbody id="child1" style="display:none;">
    <tr><td class="lightForm" >
    
    <font face="arial" size="2">Child 1:</font></td>
    <td class="lightForm"><input  class="inputtext" style="width:13em" type="text" name="child1" value="<?= $child1; ?>">
    
    </td></tr>
    </tbody>
    
    </table>
    ...etc
    
    


Comments

  • Registered Users, Registered Users 2 Posts: 8,070 ✭✭✭Placebo


    FYI

    style.visibility='hidden';

    or visible

    works for both.

    actually that just left a bank space, best use

    =""; to SHOW and none to hide.


Advertisement