Forms. Dynamic change of the form's ItemId depending on other page elements

Let's say we need to make a quick order form that depends on the quantity field on the page. 

We can virtually create a modal form button, pass it the desired ItemId, and programmatically call it (and then delete it). 


<div class="s1">
  <input type="text" class="s1-count" value="2">
  <a href="#" class="s1-order">Create order</a>

Code JS: 

  $(document).delegate('.s1-order', 'click', function(e){
    var count = $(this).closest('.s1').find(".s1-count:first").val();
    	var link = $('');
      	setTimeout(function(){ link.remove(); }, 100);

As a result, the s1-order button works as if it is a modal form button, in which the quantity from the external s1-count field is entered. 

Falcon Space is a functional web development platform on a narrow stack MS SQL/Bootstrap. Falcon Space Gettting started

SQL-tool for creating personal accounts on the site

The essence of the approach and the history of the creation of Falcon Space
Web platform for creating personal accounts

Falcon Space Platform

This is a reduction in the cost of ownership

at the expense of fewer people to support

This is a quick change

while using the program

This is a modern interface

full adaptation for mobile devices

MS SQL web applications. Affiliate program for developers and web studios

You can develop on your own or collaborate with us on Falcon Space web development using only SQL and HTML.
See examples with SQL code
Platform documentation
Working on MS SQL Server