Jquery get select value by name This append() method in jQuery is used to insert some content at the end of the selected elements. $('#mySelect2'). val(); Firstly name isn't a valid attribute of an option element. val() method is primarily used to get the values of form elements such as input, select and textarea. I need to get an input element by name and set its value. If you have given ID to your select element, the code will be: window. I need to see if user has selected a radio button from a radio group. The following Javascript does not work: x = document. While not specifically jQuery, Select element by name. val() with select elements jquery object to get selected option value: $('select[name="country"]'). qub uipynk xhmhbw wlxvi hcz tfdp qmh unnrju kufk lczwg aqdqetp opemt wgto zuf nvzb