SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Feb 2009
    Posts
    994
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Logic issue or can't we use jquery toggle here ?

    http://jsfiddle.net/4XQ2u/18/

    This works only if we have one fieldset appearing.

    If you duplicate the fieldsets and test it again, you will notice that, if we have two fieldsets, the links that trigger should also change, but they don't, making the link text to be absurd.

    http://jsfiddle.net/4XQ2u/40/

    Am I using the wrong tool for this job, or is it a logic issue on this code ? Or both ?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,527
    Mentioned
    84 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by oikram View Post
    If you duplicate the fieldsets and test it again, you will notice that, if we have two fieldsets, the links that trigger should also change, but they don't, making the link text to be absurd.
    What are you wanting to happen with multiple fieldsets when the add translation button is clicked. Do you want a translation line to be added for each fieldset, or just for the last one?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

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