Generate unique random number perform insert,update,delete show into text box value?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgdvicky
    New Member
    • Feb 2014
    • 12

    Generate unique random number perform insert,update,delete show into text box value?

    I need to generate unique random number to show into the text box value and also perform insert,delete,u pdate operation using java script. I need your solution which is better way using mysql or java script.? I'm trying java script and facing problem i could not show unique id.?

    java script code:
    Code:
    document.getElementbyId("random").value=Math.floor(Math.random()*10);
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    javaScript cannot directly communicate with a (server-side) DB. client-side JavaScript needs a server-side language that does all the DB work and for server-side JavaScript you’ll need to look what your DB driver library offers.

    Comment

    • Exequiel
      Contributor
      • Jul 2012
      • 288

      #3
      u can use ajax . . .

      Comment

      Working...