Jump to content

Better Method - point in the right direction


gevensen

Recommended Posts

i have the html code below that creates an ajax call that works

i can pass the data contained in id="update_<?php echo $bank_data[$i][11]?>" which is basically a field named after a file id which contains a date in date form 2010-01-01 for example to a javascript query using get element by id

this creates a button in the same box below the input field which i have to then click to make the query

is there a way to eliminate the button and for example doubleclick on the textbox to make the query?

 

 

<td width = "75" align = "center" ><input align = "middle" name="date_update" type="text" id="update_<?php echo $bank_data[$i][11]?>" value="<?php echo $bank_data[$i][1]; ?>" />
<button onclick="update_posteddate(<?php echo $bank_data[$i][11]; ?> )">Update Post Date</button> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.