Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

PHP output format

$
0
0
hello friends,

i have a script that creates this output

<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js">
</script><script type="text/javascript">
$(document).ready(function(){
    $("#head").html("it worked");
});
</script>
</head>
<body><div xml:id="head" class="head">hello world</div></body>
</html>




The only problem is the div with the attribute xml:id = 'head'.

It seems that the jquery ID Accesser $('#') does not want to grab the element (because its not id = 'head')

Would there be a way for my PHP script to find all xml:id and replace them with id?

If so i would very much appreciate it!

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>