[jQuery] selector for multi select menu (php)
I'm using jQuery on a PHP page that has a select menu whose id (and
name) are "f_location_type_menu[]". This is a multi-line select which
allows more than one item to be selected. The []'s allow PHP to allow
the posted values as an array. There is a bunch of back end code that
relies on this.
I'm struggling with the jQuery selector for this select menu. Neither
of the following are working for me.
$("select#f_location_type_menu")
$("select#f_location_type_menu[]")
Any ideas?