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 11: Line 11:


$("#andOp").click(function(){
$("#andOp").click(function(){
$("input:focus").parent().get( 1 ).append(andBox);
var andBox = "<input type='text' class='queryString' />";
$(".queryString:focus").parent().append(andBox);
});
});


$(".queryString").focus(function(){
$(".queryString").focus(function(){
var andBox = "<input type='text' class='queryString' />";
 
$( this ).parent().append( andBox );
});
});



Revision as of 18:02, 17 October 2013