ajax - function has stopped working once bootstrap was added to file -


i have hash_gen function passes hash number post next file. function set in operation once submit button pressed delivering text var called parm_x.

that function called with:

<input style="display:none;" name="parm_x" id="hash_gen"> 

after submit button. function is:

  function hash_gen()   {        var url = "hash_gen.php";        new ajax(url, {            method: 'post',            oncomplete: function(response)                {                     $("hash_gen").value = response;                }         }).request();   }   hash_gen(); 

hash_gen.php works fine.

the function has stopped giving value once bootstrap elements , validator elements added.

where problem?

thanks

the default syntax id selector $("#id").

$("#hash_gen").value = response; 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -