doujiling4377 2014-10-23 20:12
浏览 22

Jquery更改输入文本位置和名称

I don´t know if this it´s possible by this my question and i´ll try writte the best i can my question

I have one form with 5 fields , all fields when i send form his values insert using php with foreach loop , the fields and values receive in the order i have in the form no in other

I try with jquery change order and put for example the first field in the last position and other fields also i change his position using jquery draggable

The problem i see , it´s for example my fields in the form have in his name one number , for example :

<INPUT TYPE="TEXT" NAME="TABLE[V0]" VALUE="">

<INPUT TYPE="TEXT" NAME="TABLE[V1]" VALUE="">

<INPUT TYPE="TEXT" NAME="TABLE[V2]" VALUE="">

<INPUT TYPE="TEXT" NAME="TABLE[V3]" VALUE="">

<INPUT TYPE="TEXT" NAME="TABLE[V4]" VALUE="">

<INPUT TYPE="TEXT" NAME="TABLE[V5]" VALUE="">

Whith jquery draggable i can change position , but when launch the form receive in the same order and no change order really , by this if i change the first field to the last , in first position i continue receive the first value in first position and no in the last , by this my question is if it´s possible change the name of field when we change position by the position of other field , etc

I don´t know if it´s very difficult but i supose it´s possible , but i try differents ways but no get the results i want

I hope understand the idea , sorry if no possible understand all fine , i try tell the best i can , thank´s , the best regards

  • 写回答

1条回答 默认 最新

  • douchengfei3985 2014-10-23 20:19
    关注

    The PHP will process the form in the order that it is defined in the PHP file. If you need the form to be processed in a different order try posting a JSON object from jQuery via Ajax. You will then need to handle what the app does next.

    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类