Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Delete a row from list on a click of a button

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 92
    Comment on it

    If you want to delete a particular list (li) from the listing, you can easily do this with the following code.

    $('#demo ul li[rel="'+id2+'"]').remove();
    
    <div is="demo ">
       <ul>
            <li rel="id1">This is just a demo. </li>
            <li rel="id2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. </li>
            <li rel="id3">Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. </li>
      </ul>
    </div>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: