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 5: | Line 5: | ||
var andBox = "<input type='text' class='queryString' />"; | var andBox = "<input type='text' class='queryString' />"; | ||
$("#formSpace").html(orBox); | $("#formSpace").html(orBox); | ||
$(".queryString").focus(function(){ | |||
alert('boop'); | |||
$(".focused").removeClass( "focused" ); | |||
$( this ).parent().addClass( "focused" ); | |||
}); | |||
$("#orOp").click(function(){ | $("#orOp").click(function(){ | ||
Line 20: | Line 26: | ||
$("#andOp").click(function(){ | $("#andOp").click(function(){ | ||
var andBox = "<input type='text' class='queryString' />"; | var andBox = "<input type='text' class='queryString' />"; | ||
$(". | $(".focused").parent().append(andBox); | ||
}); | }); | ||