Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fetch data from servlet and dynamically show as checkboxes in jquery dialogue box
    primarykey
    data
    text
    <p>I have a jquery dialogue box where i am displaying checkboxes and it is hardcoded.currently number of checkboxes displayed is fixed as present in hardcoded data.Now i got a requirement where i need to show these checkboxes dynamically from data achieved from server side using servlet in java but i have no idea as how to retrieve data from servlet and display it into dialogue box as checkbox dynamically.</p> <p>The dialogue box is opening on clicking a link button..</p> <p>here is my code containing hardcoded checkboxes and dilaogue box along with link button click event..</p> <pre><code>var $calltype = $('&lt;div&gt;&lt;/div&gt;') .html('&lt;form id="calltype" action=""&gt;&lt;input type="checkbox" id="LOCAL" name="LOCAL" value="LOCAL" /&gt;LOCAL&lt;br /&gt;&lt;input type="checkbox" name="STD" id="STD" value="STD" /&gt; STD &lt;br /&gt;&lt;input type="checkbox" name="ISD" id="ISD" value="ISD" /&gt;ISD&lt;br /&gt;&lt;input type="checkbox" name="INCOMING" id="INCOMING" value="INCOMING" /&gt;INCOMING&lt;br /&gt;&lt;input type="checkbox" name="INET" id="INET" value="INET" /&gt;INET&lt;br /&gt;&lt;/form&gt;') .dialog({ autoOpen: false, title: 'Select Calltype', buttons: { "Submit": function() { $('form#calltype').submit();}, "Cancel": function() {$(this).dialog("close");} } }); $('#callltype').click(function(evt) { selcalltype=""; $calltype.dialog('open'); evt.preventDefault(); // prevent the default action, e.g., following a link return false; }); </code></pre> <p>Any help will be highly appreciated.. Thanks in advance..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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