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