Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2009
    Posts
    42
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Hide row if input field empty

    Hey guys,

    On my site, if a user doesn't enter an input field like "Occupation" for instance at registration or in their "edit profile" page, is there a way of hiding the table row (or div if needed) that the input fields content would be in if nothing has been entered?

    I would also need to hide the same for drop down select boxes too.

    Thanks,

    Adam

  • #2
    Regular Coder seco's Avatar
    Join Date
    Nov 2008
    Location
    Oregon
    Posts
    687
    Thanks
    6
    Thanked 79 Times in 77 Posts
    PHP Code:
    if (condition){
    //show somthing

    Last edited by seco; 02-21-2010 at 12:13 PM.

  • #3
    New Coder
    Join Date
    Jun 2009
    Posts
    42
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Unfortunately, I'm a novice and that doesn't help.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •