find - Jquery wildcard not select not working -



find - Jquery wildcard not select not working -

i have form send off various orders, happens in th ebackground via ajax. 1 order can sent @ time when send button clicked want hide other send buttons still show one.

the id of table cells "send(order_number)1". jquery code is

$('#all_orders').find('[id^=send]').not('#send'+order_id+'1').replacewith();

where +order_id+ clicked order.

currently hides of buttons.

each order repeated in table within div id of all_orders.

<td id="send<?=$order['id']?>1"> <input type='button' class='submit subtitle' value='send' onclick="export_leads(<?=$order['id']?>, '<?=$orders[$order['id']]['type']?>', '<?=$orders[$order['id']]['amount']?>', <?=$client_id?>)"> </td> function export_leads(order_id, type, amount, client_id){ $('#all_orders').find('[id^=send]').not('#send'+order_id+'1').replacewith(); //ajax send order code $.ajax({ type: "post", url: "../includes/ajax.php", data: "type="+type+"&amount="+amount+"&client_id="+client_id, datatype: "html", success: function(msg) { $('#send_panel'+order_id).replacewith(msg); } }); }

jquery find wildcard

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -