Having trouble rendering JSON data to a selectbox from my clients public job board API.
This is what I have so far:
Javascript:
$(document).ready(function(){
$.ajax({
url:'https://api.greenhouse.io/v1/boards/roivantsciences/jobs/',
type:'POST',
data: 'q=' + str,
dataType: 'json',
success: function( json ) {
$.each(json, function(i, value) {
$('#myselect').append($('<option>').text(value).attr('value', value));
});
}
});
});
HTML:
<select id="myselect" name="myselect" ><option selected="selected">blank</option></select>
it's not returning anything. i'm sure this is rife with mistakes but any amount of guidance would be greatly appreciated
strstr