Posts by Fonseca • 86 points
4 posts
-
2
votes1
answer54
viewsA: A problem with variables in JS and PHP
The id (identifier) in html should be unique, so it will only work in the first div found, try to change your code to the following: // aqui eu mostro os valores de minha consulta echo…
-
1
votes8
answers12405
viewsA: How to switch between true and false checked input?
Try it this way: $( "input[type='checkbox']:odd" ).attr( "checked", "true" );
-
3
votes3
answers72012
viewsA: Global variable in Javascript
When I need to use a global variable in JS I do it as follows: top.fill = ""; $("#div3").click(function() { top.fill = "a"; }); $("#div2").click(function() { alert(top.fill); }); I believe you must…
-
1
votes3
answers647
viewsA: Dynamically load from the bank and mount a treeview in cshtml I’m not getting
If you have an (if) open a tag you would also have an (if) to control its closing, that’s it.