我在 wordpress 中使用 Civicrm 插件。Civicrm javascripts 使用标签自动生成<p>
。
下面的示例代码:
<p><script language="javaScript" type="text/javascript"></p>
<p> cj(function() {
countryID = "country-Primary"
// sometimes we name != id, hence if element does not exists
// fetch the id
if ( cj( '#' + countryID ).length == 0 ) {
countryID = cj( 'select[name="' + countryID + '"]' ).prop('id');
}</p>
<p> stateProvinceID = "billing_state_province_id-5"
if ( cj( '#' + stateProvinceID ).length == 0 ) {
stateProvinceID = cj( 'select[name="' + stateProvinceID + '"]' ).prop('id');
}</p>
<p> cj( '#' + countryID ).chainSelect(
'#' + stateProvinceID,
callbackURL,
{
before : function (target) {
if (typeof(setdefault) === "undefined") { setdefault = new Array(); }
targetid = cj(target).attr("id");
eval('setdefault[targetid] = cj(target).val()');
},
after : function(target) {
targetid = cj(target).attr("id");
cj(target).val(setdefault[targetid]);
}
}
);
});</p>
<p> </script></p>
如何<p>
从此脚本中删除标签?
谢谢, 希瓦吉