Title: Using Jquery with code snippets
Last modified: December 22, 2019

---

# Using Jquery with code snippets

 *  [token001](https://wordpress.org/support/users/token001/)
 * (@token001)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/using-jquery-with-code-snippets/)
 * Dear all,
    i have a php snippet called Test1
 * i use a jquery under js\js_new.js
 * I use Test1 to create a table and get some data from an api.
    With js_new.js 
   i get the result from the table by clicking var helloWorld = $(‘#regFahrzeugliste’).
   html(file); is updating a div with the variable file
 * however i need the variable file from js_new.js in my php code snippet…
 * how could i do it?

Viewing 1 replies (of 1 total)

 *  [sumaiyaf](https://wordpress.org/support/users/sumaiyaf/)
 * (@sumaiyaf)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/using-jquery-with-code-snippets/#post-12335932)
 * hi,
    It is not possible to access a variable using js field

Viewing 1 replies (of 1 total)

The topic ‘Using Jquery with code snippets’ is closed to new replies.

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [sumaiyaf](https://wordpress.org/support/users/sumaiyaf/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/using-jquery-with-code-snippets/#post-12335932)
 * Status: not resolved