i want to add css class to choice drop down filed using jquery below is code.
$("input[title='fieldname']").attr('class', 'form-control')
But somehow it is not working.
can anyone help me regarding this
You are using input instead of select in your script.
Try following script:
$("select[title='fieldname']").attr('class', 'form-control')
addClass('form-control') is cleaner than adding the class attribute yourself.
addClass('form-control') method add another class to the element wherease .attr('class', 'form-control') will replace any class attached to the element with the specified one.
<select>as drop down or<input>?