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 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(".queryString").focus(function(){ | $(".queryString").focus(function(){ | ||
Line 10: | Line 6: | ||
$( this ).parent().addClass( "focused" ); | $( this ).parent().addClass( "focused" ); | ||
}); | }); | ||
$(document).ready(function(){ | |||
var orBox = "<div class='query'> <input type='text' class='queryString' /> </div><br />"; | |||
var andBox = " <input type='text' class='queryString' /> "; | |||
$("#formSpace").html(orBox); | |||
$("#orOp").click(function(){ | $("#orOp").click(function(){ | ||
$("#formSpace").append(orBox); | $("#formSpace").append(orBox); | ||
}); | }); | ||