Widget:KeywordSearch: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
var | var orBox = "<div class='query'><input type='text' class='query' /></div><br />"; | ||
var andBox = "<input type='text' class='query' />"; | |||
$("#formSpace").html(textBox); | $("#formSpace").html(textBox); | ||
$("# | |||
$("#orOp").click(function(){ | |||
$("#formSpace").append(textBox); | $("#formSpace").append(textBox); | ||
}); | }); | ||
Line 10: | Line 12: | ||
$("#showQueries").click(function(){ | $("#showQueries").click(function(){ | ||
$.each($(".query"), function( index, value ){ | $.each($(".query"), function( index, value ){ | ||
alert($( this ). | alert($( this ).parent()); | ||
}); | }); | ||
}); | }); | ||
Line 16: | Line 18: | ||
</script> | </script> | ||
<div id="formSpace"></div> | <div id="formSpace"></div> | ||
<input type='button' id=' | <input type='button' id='orOp' value='OR' /> | ||
<input type='button' id='andOp' value='AND' /> | |||
<input type='button' id='showQueries' value='SHOW' /> | <input type='button' id='showQueries' value='SHOW' /> | ||
</includeonly> | </includeonly> |