php和javascript问题。 [英] php and javascript question.

查看:61
本文介绍了php和javascript问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我很困惑我的代码放在哪里工作正常。我找到了一个简单的javascript教程来添加一个函数,这样我就可以隐藏和显示我的php表。但是,当我把它放在一起时,我无法让它工作。它可以很好地显示表格而不添加javascript并添加< tr id =" table">代码行。我不知道javascript是否在错误的位置。任何帮助都会很棒。谢谢

So I am confused on where to put things in my code to work right. I found a simple javascript tutorial to add a function so that i can hide and show my php tables. but when i put it all together i cant get it to work. It works fine displaying the table without the javascript added and adding the "<tr id="table"> line of code. I dont know if the javascript is in the wrong place or not.any help would be great.thanks

展开 | 选择 | 换行 | 行号

推荐答案

没有这样的东西
there is no such thing as
展开 | 选择 | Wrap | 行号


由于你隐藏并显示表格行,你的显示CSS可能应该是table-row。请参阅您可以在w3c上将显示属性设置为的有效值: CSS显示


-Frinny
Since you''re hiding and showing table rows your display CSS should probably be "table-row". See the valid values you that you can set the display property to on w3c: CSS Display.

-Frinny


我仍然一无所获..我的html里面有我的PHP代码是一个问题括号。因为我可以把javascript代码放在任何地方,但第二个我改变了< tr>到< tr id ="东西">它不会工作。
i still get nothing..is it a problem that i have my php code inside of my html brackets. because i can place the javascript code anywhere but the second I change <tr> to <tr id=" something"> it wont work.


这篇关于php和javascript问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆