[英]broke my code into fiddle not appearing
i am planing to make my text box editable... so i removed the id from the disabled code... even i tested in fiddle its not working... providing my cod below.... i am providing part of my code in fiddle i am not able to see the text box... 我打算使我的文本框可编辑...因此我从禁用的代码中删除了ID ...即使我在测试中也无法正常工作...在下面提供了我的鳕鱼......我在提供我的代码的一部分在小提琴中,我看不到文本框...
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>
</body>
</html>
You have to use input
instead of form:input
, browser can render standard html tags and you have to provide standard html. 您必须使用
input
而不是form:input
,浏览器可以呈现标准html标签,并且您必须提供标准html。
Change 更改
<input id="behvrName" type="text" cssClass="icwText" path="" />
To 至
<input id="behvrName" type="text" cssClass="icwText" path="" />
cssClass and are also not standard attributes and you need to change them if you want them to be interpreted and act accordingly by browser. cssClass也不是标准属性,如果希望它们被解释并由浏览器采取相应措施,则需要更改它们。
cssClass
would be class
. cssClass
将是class
。
spring:message
and form:input
are not plain HTML tags; spring:message
和form:input
不是普通的HTML标签; rather, they are pseudo-tags processed by your server-side framework. 相反,它们是由服务器端框架处理的伪标记。 If you want to use JSFiddle, you must use plain HTML.
如果要使用JSFiddle,则必须使用纯HTML。
Furthermore, your input
's id
is behvrName
, but you're not selecting that. 此外,您
input
的id
是behvrName
,但您没有选择它。 If you want to disable that input
, use an appropriate selector $('#behvrName')
in the JavaScript portion. 如果要禁用该
input
,请在JavaScript部分使用适当的选择器$('#behvrName')
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.