Passing $this->get_field_name() to javascript
The Problem So I figured out what the problem was. In the statement below, jQuery was grabbing the first element with the id of #order_field_name. var widget_field_name = $( ‘#order_field_name’ ).attr( ‘field_name’ ); As it turns out, there were actually two elements with that id. The first element with this id is the widget in … Read more