Title: access options table in database from inside jQuery script
Last modified: August 21, 2016

---

# access options table in database from inside jQuery script

 *  [danixland](https://wordpress.org/support/users/danixland/)
 * (@danixland)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/access-options-table-in-database-from-inside-jquery-script/)
 * Hello everybody,
    I’m writing a new theme and I need a jQuery script loaded on
   the admin side of the site, inside a theme option page only, and that was the
   easy part, it’s working and all is great. Now I need this script to be able to
   use a value from the options database and I have no idea on how proceed..
 * the script is enqueued via the admin_enqueue_script action using the `wp_enqueue_script()`
   function. is there a way to pass an option to a script loaded that way??
 * Thanks everybody in advance!!

The topic ‘access options table in database from inside jQuery script’ is closed
to new replies.

## Tags

 * [admin page](https://wordpress.org/support/topic-tag/admin-page/)
 * [database](https://wordpress.org/support/topic-tag/database/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [options table](https://wordpress.org/support/topic-tag/options-table/)

 * 0 replies
 * 1 participant
 * Last reply from: [danixland](https://wordpress.org/support/users/danixland/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/access-options-table-in-database-from-inside-jquery-script/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
