0

I'm trying to doing a multiple toggle with markdown pad but don't work:

<input type="button" value="Toggle block visibility"    onclick="$('.mdinput div:nth-child(1)').toggle();">




```yaml
     #: name=d
rac: [3.551, 2.232, 1.402, 1.114, 0.882, 0.7]
 gmr: [0.0055611962035177, 0.00700459393067038, 0.00882262274842038,   0.00990159326021141, 0.0111125174323268, 0.0124715326552536]
 conductors: [6, 4, 2, 1, 1/0, 2/0]
```

```yaml
     #: name=rac
 [3.551, 2.232, 1.402, 1.114, 0.882, 0.9]
```


  <input type="button" value="Toggle block visibility2" onmouseenter="$('.mdinput div:nth-child(2)').toggle();">



```yaml
         #: name=d2
  rac: [3.551, 2.232, 1.402, 1.114, 0.882, 0.7]
 gmr: [0.0055611962035177, 0.00700459393067038, 0.00882262274842038,    0.00990159326021141, 0.0111125174323268, 0.0124715326552536]
conductors: [6, 4, 2, 1, 1/0, 2/0]
```
halfer
  • 19,824
  • 17
  • 99
  • 186
user7412219
  • 134
  • 1
  • 3
  • 11

1 Answers1

0

i solve the problem is that i confusing the element this is classes i use something like this

           <input type="button" value="Toggle block visibility" onclick="$('.mdinput').eq(1).toggle();">




        ```yaml
              #: name=d
      rac: [3.551, 2.232, 1.402, 1.114, 0.882, 0.7]
         gmr: [0.0055611962035177, 0.00700459393067038,  0.00882262274842038,   0.00990159326021141, 0.0111125174323268,    0.0124715326552536]
              conductors: [6, 4, 2, 1, 1/0, 2/0]
      ```

    ```yaml
 #: name=rac
      [3.551, 2.232, 1.402, 1.114, 0.882, 0.9]
    ```





 <input type="button" value="Toggle block visibility2" onclick="$('.mdinput').eq(2).toggle();">





    ```yaml
                #: name=d2
            rac: [3.551, 2.232, 1.402, 1.114, 0.882, 0.7]
         gmr: [0.0055611962035177, 0.00700459393067038,  0.00882262274842038,    0.00990159326021141, 0.0111125174323268, 0.0124715326552536]
      conductors: [6, 4, 2, 1, 1/0, 2/0]
     ```
user7412219
  • 134
  • 1
  • 3
  • 11