0
I have a situation where I need to insert a single div into a block via jQuery, is there any function already defined that ensures that this block will be inserted only once? Without me having to check with if
if (!jQuery('.product').parents('.product-info').has('.quickreview').length {
jQuery('.product').parents('.product-info').prepend("<div class="quickreview"></div>");
}
The missing parenthesis was the fault of the person who edited the boy’s post, in the original had correctly placed if parentese.
– Máttheus Spoo
Thank you for clarifying!
– Julio Negri Mirandola