I create Product slider plugin for woocommerce. in my plugin i need to display quantity with add to cart button in product slide view. following code i added woocommerce_quantity_input() function to display quantity field within the div. but unexpectly quantity field display out of the div. how to fix this issue
$displayslide.='<div class="productcartsection">';
$displayslide.="<form action=".esc_url( $product->add_to_cart_url() )." class='cart' method='post' enctype='multipart/form-data'>";
$displayslide.=woocommerce_quantity_input();
$displayslide.='<button type="submit" class="button alt">Add Cart</button>';
$displayslide.="</form>";
$displayslide.='</div>';