So for example I want to create a list of inputs and the user
is able to choose from that list 1 option. And if that option is checked
without pressing any button the image reloads or whatever.

Member Avatar for rajarajan2017

Both can we do. When selecting an option you can call some javascript to load the image or after submit

could u give me some source code or keywords to search instead?

Member Avatar for rajarajan2017
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<div id='imageSpace'><img src='images/image.jpg'></div>
<input type="radio" name="changer" value="show" onclick="document.getElementById('imagespace').style.display = '';"> Show<br>
<input type="radio" name="changer" value="hide" onclick="document.getElementById('imagespace').style.display = 'none';"> Hide
</body>
</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.