asp.net - Selector for dynamically generated ID -


i have series of div id tagged conventional:

<div id="result<%=order.id %>"> 

the handler submits form can find out order.id via:

frominput.split(",")[1] 

so how element concatenated static part of div id?

$('#frmchooseoptions').ajaxsubmit({     beforesubmit: checkready,     target: "#result" + frominput.split(",")[1]  }); 

mny thx

i had right idea split string wrong:

var divnum = frominput.split(","); divnum = divnum[1]; 

then: ...

target: "#result" + divnum 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -