Question: I'm having troubles in getting selection box value inside jQuery. I want selection box value inside check box change of function. ie:

inside

```html
$('input').on('change', function()  //need selection box value here
});
```

```html
<select class="selectclass" id="id" >
 <option  value="22" >option1</option>   
  <option  value="33" >option21</option> 
</select>
```

Gone through the stackoverflow questions like these but could'nt get what I want

[jquery change select to checkbox](https://stackoverflow.com/questions/13265735/jquery-change-select-to-checkbox)

etc...

Answer: 
My solution for now is to do a call to `system()`. For instance: 

```
system("xelatex --shell-escape my-script.tex")

```

If there are better solutions that don't require a `system()` call (I've heard of issues with cross-platform compatibility), that would be great.
I eventually ended up with the following solution:

```
install.packages("tinytex")   
require("tinytex")}
install_tinytex(force = TRUE)
tlmgr_install('montserrat') 
xelatex('Report.tex')

```

This code install [TinyTex](http://yihui.name/tinytex/), then it installs the font package *montserrat* with *tlmgr\_install* function.