Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I read a flat XML file , you would read from your PERL program.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="UTF-8" /&gt; &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(helloWorld) function helloWorld() { $.ajax({ url: 'perldata.xml', success: function(data) { $('[key]',data).each(function(){ $('#chk_'+$(this).attr('key')).prop('checked',true) }) } }) } &lt;/script&gt; &lt;title&gt;perlData&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="message"&gt; &lt;form&gt; &lt;input id='chk_0' type='checkbox' /&gt;0&lt;br /&gt; &lt;input id='chk_1' type='checkbox' /&gt;1&lt;br /&gt; &lt;input id='chk_2' type='checkbox' /&gt;2&lt;br /&gt; &lt;input id='chk_3' type='checkbox' /&gt;3&lt;br /&gt; &lt;input id='chk_4' type='checkbox' /&gt;4&lt;br /&gt; &lt;input id='chk_5' type='checkbox' /&gt;5&lt;br /&gt; &lt;input id='chk_6' type='checkbox' /&gt;6&lt;br /&gt; &lt;input id='chk_7' type='checkbox' /&gt;7&lt;br /&gt; &lt;input id='chk_8' type='checkbox' /&gt;8&lt;br /&gt; &lt;input id='chk_9' type='checkbox' /&gt;9&lt;br /&gt; &lt;input id='chk_10' type='checkbox' /&gt;10&lt;br /&gt; &lt;input id='chk_11' type='checkbox' /&gt;11&lt;br /&gt; &lt;input id='chk_12' type='checkbox' /&gt;12&lt;br /&gt; &lt;input id='chk_13' type='checkbox' /&gt;13&lt;br /&gt; &lt;input id='chk_14' type='checkbox' /&gt;14&lt;br /&gt; &lt;input id='chk_15' type='checkbox' /&gt;15&lt;br /&gt; &lt;/form&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload