jquery mobile store variables in the application

Asked

Viewed 33 times

0

Hello

I’m creating a little app no and I can make calls to phone numbers entered through forms. The data is entered in a settings page:

<div data-role="fieldcontain"> <form action="" method="post" name="config"><label for="bombeiros">Bombeiros</label> <input name="bombeiros" type="text" id="bombeiros" value="" size="9" maxlength="9" /> </div>

And the calls are made on other pages:

<td width="20%" height="45" align="center"><a rel="external" href="tel:+351333666999" ><img src="jquery-mobile/images/bombeiros.png" width="70" height="70"></td>

So it makes calls to the number 333666999, what I wanted is that it saved the number inserted in the form of the settings and made calls to that number. which would only be lost when replaced by another in the form.

It’s all in an index.html

Thanks for the help.

  • Could you put the full html in codepen or jsbin? From what you explained, I believe it is possible to solve only with javascript.

  • Hello, here’s the full code, no images and css. https://codepen.io/zepadilha/pen/zBYNBO Thank you

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.