jquery和JavaScript脚本不起作用
jquery and javascript script not working
嗨,伙计们,我想知道您是否可以帮助我处理此代码以找出它不起作用的原因。它支持用一些架构代码填写文本区域。帮帮我解决这个问题,我卡住了。
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("input").keyup(function() {
updateTemplate();
});
});
var Comunity = "Comunity";
var ot = "<";
var ct = ">";
function updateTemplate() {
comunityText = $("#myComunity").val();
thisStreet = $("#myAddress").val();
thisCity = $("#myCity").val();
thisState = $("#myState").val();
thisZip = $("#myZip").val();
thisUrl = $("#myUrl").val();
thisImgurl = $("#myImgurl")val();
thisDescription= $("#myDescription").val();
var template = "<div itemscope itemtype='"http://schema.org/" + Comunity + "'">'n";
template += "'t<div itemprop='"name'">" + comunityText + "</div>'n";
if ($("#myLat").val() != "") {
template += "'n't<div itemtype='"http://schema.org/GeoCoordinates'" itemscope='"'" itemprop='"geo'">'n";
template += "'t't<meta itemprop='"latitude'" content='"" + $("#myLat").val() + "'" />'n";
template += "'t't<meta itemprop='"longitude'" content='"" + $("#myLong").val() + "'" />'n";
template += "'n't</div>";
}
template += "'n't<div itemtype='"http://schema.org/PostalAddress'" itemscope='"'" itemprop='"address'">'n";
template += "'t't<div itemprop='"streetAddress'">" + thisStreet + "</div>'n";
template += "'t't<div><span itemprop='"addressLocality'">" + thisCity + "</span>, <span itemprop='"addressRegion'">" + thisState + "</span> <span itemprop='"postalCode'">" + thisZip + "</span></div>'n";
template += "'t</div>'n";
template += "</div>'n";
$("#textOut").html(template);
$("#myOut").html(template);
}
</script>
thisImgurl = $("#myImgurl")val();
缺少一点。
相关文章:
- 当有许多形式时,Fancybox脚本不起作用
- Aureliaview中的脚本不起作用
- JQuery脚本在IE中不起作用
- 淡入淡出脚本不起作用
- 未捕获的类型错误:无法设置属性'innerHTML'如果为null,则将脚本移动到正文不会;不起作用
- jQuery脚本在googlechrome中不起作用
- 替换字符串的脚本;在某些网站上不起作用
- 从jquery对话框恢复原始数据,脚本不起作用
- java脚本中的谷歌地图在第二次点击时不起作用
- 我的脚本不起作用
- JavaScript onScroll在谷歌应用程序脚本web应用程序中不起作用
- 为什么锚在此脚本中不起作用
- getRange(单元格)在谷歌应用程序脚本中不起作用
- 脚本在我的引导模式中不起作用
- 用于wooccommerce的简单JQuery脚本不起作用
- 对照数组脚本检查文本框中的值不起作用
- 脚本在IE 9中不起作用
- 如果视图中没有Jquery脚本引用,Unobtrusive Javascript Validation是不起作用的
- Codeigniter :通过 AJAX 调用 php 脚本时路由不起作用
- 谷歌转化不起作用 - 脚本无法加载