0

Does anybody know anything about click functions? I need ur help guys. what I wanted is that there will be 3 choices and once I clicked one of those choices it will be automatically displayed to a table in html. please help me cause google can't help me or i will be grateful if you can just tell me the names of some click functions(drag and drop, etc...)

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by P0lT10n
0

If you want a click update (as opposed to a send form update), you'll need Ajax.

e.g. onclick="changeValue();"

The js script then gets a php script to run in order to update the db. jQuery is a great framework to ajaxify your page.

0

If you want a click update (as opposed to a send form update), you'll need Ajax.

e.g. onclick="changeValue();"

The js script then gets a php script to run in order to update the db. jQuery is a great framework to ajaxify your page.

Right, if you need to update the info without refreshing page like Facebook, use AJAX, if not, use JavaScript.

For JavaScript:

<script type="text/javascript">
function click(){
	alert('You clicked the button')
}
</script>

<input type="submit" value="Submit" onClick="click();">

When you click the button, it will prompt a JavaScript MessageBox saying: "You clicked the button".

Edited by P0lT10n: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.