I am trying to build a jQuery selector. This involves concatenating string and variables. However, for some reason, the resulting selector comes up invalid. I have attempted a number of options such as this:
$('[name="[name='$radioName + (row_id) + ']"][value="$result"]').attr('checked',true);
$radioName example is: 'Nigeria[Osun][Okuku-;// the angle bracket is not closed as the row_id will be appended to it before the closing bracket is appended as shown above.
$result example is: '67
row_id example is: 5
How may I build a valid descriptor with these requirements?
Thanks