How I can select option with value after ajax success? I do like this, but it doesn't work.
$.ajax({
type: "POST",
url: "/ax.php",
cache: false,
data: { action: 'show', id: pid},
success: function(responce){
$('div[name="qwerty"]').html(responce);
var some_value = <?=$ads['cat2']?>;
$('#cat_2 select option[value="'+some_value +'"]').prop('selected', true);
...........................................................
P.S There is no error in console. And some_value = 10, and there is option with value 10 in select, but not selected. P.P.S I use async:false, it doesn't work either.