i use oracle database .. i created project that one.. dropdown box using get in table attributes.. ie: Table : Department Columname:dept_name No.of department name display in dropdown box
you can't. js is client site scripting while the databse is server side scripting. You need to use a server side scripting language like php, .net, coldfusion etc.
if you want to use the database for validation purposes then you need to do this via ajax and still use a server side scripting language. js can not access any database on its on. It can only work with data provided from a database via a server side scripting language. Maybe you should post some code so that we can get a better picture of what you are trying to do.
Agree with Plussy completely of course. On a more detailed note, to do what you are trying to do would require that you build some server side code that accesses the database for your client scripts--personally I like PHP for my server side code. A very simple framework that was made for that purpose is Slim--google "slim php framework", it is basically a very straightforward way of creating simple web services to support your JavaScript web application. You would build your database scripts with slim, and then consume them with your javascript scripts--thus giving your javascripts database access through your PHP scripts if that makes sense. Eli